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).

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

| improve this answer | |

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.