0

I'm using Nerd-tree for vim. Whenever I use :NERDTreeToggle key, it opens up two directory windows instead of one, like soenter image description here

It's only when I type :qon one of the windows does it become like this enter image description here How do I get it to only open one window on pressing the nerd-toggle key? Here's the content of my .vimrc(not created by me).

1

Just comment out the lines from 80 to 94 and things will be fine.

As, it looks to me, the reason for this is because of opening NERDTreeFind , a new directory window is opened.

1
0

I found this answer. Putting this code in my .vimrc file helped solve the issue, now I only get one directory window instead of two.
au VimEnter * NERDTree

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.