Can this be done by editing the .vimrc file?

What I need is that after closing all tabs, a new tab is there like notepad++ does.

  • 1
    Vim quits when no buffer is visible and there's no option to change that.
    – romainl
    Commented Dec 3, 2016 at 10:47
  • How would you be able to quit Vim if you can't close the last buffer/tab? Commented Dec 3, 2016 at 21:26

1 Answer 1


You seem to be looking for MacVim Preferences, and they are under the MenuBar entitled "MacVim".

MacVim -> Preferences -> General

There you'll find settings for what to do on startup, and after the last MacVim window closes. You can decide to automatically open a blank window on startup, and also for when "the last window closes" you can check "Leave MacVim Running".

There doesn't seem to be a setting to automatically open a new blank window when the last MacVim window closes, but you can easily hit +N.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.