Search code examples
vimnerdtree

Close vim NERDtree on close of file


I am trying out Vim, installed some plugins, amongst which NERDTree, followed some guides and set up a .vimrc (half of whose content I don't understand — yet).

What annoys me, is that if I :wq, vim remains active, it only closes the documents' split-screen. I end up with a fullscreen NERDTree. I would like NERDTree to close too, on closing the last tab or buffers.

Or am I using it wrong?


Solution

  • The :wqa command will write all changed buffers and exit Vim. This will close down NerdTree, too.