Auto-detect vim instances and handle errors