I tried to change the NERDTree root with
:BookmarkToRoot <bookmark>
command and with C
letter but when I close vim and open vim the root is not changed.
Do you know how to change the root forever?
I tried to change the NERDTree root with
:BookmarkToRoot <bookmark>
command and with C
letter but when I close vim and open vim the root is not changed.
Do you know how to change the root forever?
You could try something like:
I have this in my .vimrc:
so that NERDTree always opens in the current folder.
With the 1st line, the working directory is always the one where the active buffer is located.
With the 2nd line, I make sure the working directory is set correctly.
With the 3rd line, I hit
<leader>n
to open NERDTree.As i don't want vim to change directories automatically, i just use:
so you can just do a ":Ncd path/you/like/" with path completion.