3

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 Dec 3 '16 at 10:47
  • How would you be able to quit Vim if you can't close the last buffer/tab? – Martin Tournoij Dec 3 '16 at 21:26
  • @Carpetsmoker : I'm new to Vim, I know little about buffer but, I pressed <command> + <w> to closed one tab. – Niing Dec 5 '16 at 9:44
  • @Carpetsmoker By pressing <Command>+<Q>. (The OP is talking about GUI component of MacVim.) – Rich Dec 9 '16 at 9:48
5

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, privacy policy and cookie policy

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