Auto-close NERDTree when opening file in new tab
Asked Answered
M

1

5

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?

Moffat answered 20/2, 2015 at 15:33 Comment(0)
D
7

Have you tried setting:

let NERDTreeQuitOnOpen=1

This worked for me.

Drawing answered 1/6, 2015 at 9:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.