I have installed NERDtree 4.1.0.

I have mapped <leader>n to :NERDTreeToggle<CR>.

I would like to use this in a way where I can press <leader>n, then locate the deisred file in the press, press enter and have the NERDtree disappear agagin (without having to press <leader>n again).

Can someone help me with this?

link|improve this question
feedback

1 Answer

up vote 3 down vote accepted

Got impatient, looked at the docs. Solved by putting let NERDTreeQuitOnOpen = 1 in my .vimrc.

link|improve this answer
1  
Looking at the documentation is actually the FIRST thing to do because your answer is most likely there. :help is Vim's most powerful command. – romainl Sep 11 '11 at 15:53
feedback

Your Answer

 
or
required, but never shown

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