autochdir
automatically sets the current working directory to the present file that the cursor is located on. I'd like to exclude autochdir
from changing the directory if the cursor is in the NERDTree window.
For example, if the present file I'm working on is in ~/foo
, and the NERDTree window is in ~/lots/of/stuff/here
, I'd like to go to the NERDTree window and still have the current working directory set to ~/foo
.
That way, one can apply the CD
keybind, which will set NERDTree's root tree node to ~/foo
. Otherwise, it's terribly inconvenient to manually change the root tree node in the NERDTree window by navigating to ~/foo
, and then applying the cd
keybind.