Closed Elite-zx closed 3 months ago
Hi,
In the new tab if you want to create a new instance of NERDTree - as opposed to sharing the same instance - use the NERDTree
command in place of NERDTreeToggle
. It would force the NERDTree to create and use a new instance for that tab.
Optionally you can use NERDTreeMirror
to mirror another instance. It allows you to select one if there are multiple instances in the current session.
NERDTreeClose
if you don't want to use NERDTreeToggle
. use :help NERDTree
to get our documentation or use :help NERDTree
and press tab to get the list of commands and options available(and then you can select one to open the docs for it).
vim version: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Mar 1 2021 16:57:56)
vimrc:
I have opened different files in different tabs, and these files are located in different directories. I would like NERDTree to be specific to each tab, displaying the directory of the file currently open in that tab. My current idea is to automatically execute NERDTreeFind when switching to a tab.
Currently, the behavior of NERDTree is such that when I switch tabs, the NERDTree interface remains the same and does not change.