How to automatically close NERDTree after a file has been opened?

Jonathan Maim picture Jonathan Maim · Aug 30, 2011 · Viewed 9.5k times · Source

The file is opened with the 'return' key on the current tab or with the 't' key to open it on a new VIM tab.

Answer

Shootfast picture Shootfast · Feb 7, 2013

Add the following to your .vimrc

let NERDTreeQuitOnOpen=1