Wait for the vim command to finish.