I use the :e and :w commands to edit and to write a file. I am not sure if there is “close” command to close the current file without leaving Vim?

I know that the :q command can be used to close a file, but if it is the last file, Vim is closed as well; Actually on Mac OS MacVim does quit. Only the Vim window is closed and I could use ControlN to open a blank Vim window again. I would like Vim to remain open with a blank screen.

12 Answers
12

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *