Reputation: 1094
When opening a file in a new tab in vim through NERDTree, I want the NERDTree window to be closed on the previous tab. The reason being, the tab title displays NERDTree
in the previous tab. I want the default behavior, ie, the name of the file to be displayed rather than the word NERDTree
. If I switch back to the previous tab and close the NERDTree window, the default behavior is noticed. What configuration settings do I need to add to auto-close NERDTree
in my previous tab?
Upvotes: 5
Views: 805
Reputation: 6983
Have you tried setting:
let NERDTreeQuitOnOpen=1
This worked for me.
Upvotes: 7