nerdtree
nerdtree copied to clipboard
map h and l to map a new root node
Hi there,
i am used to cfiles, where i am able to naviagte between directories with vim keybinds.
So i want the same functionality in NerdTree
I tried this:
nnoremap
try adding <CR> to the command
nnorenap I :NERDTree-C<CR>
It still wont work but i saw that you mapped a big i to :NERDTree-C but not to a small L which is what i want I tried using the exact same command you gave me "nnorenap I :NERDTree-C<CR>", but I as well as l or h would still not give the expected result. Big i (I) will show hidden files and with h and l i am able to move like normal vim binds
sorry for the error, later today I'll be trying again
ok so I found out in my old configs how to proper do exactly what you want. instead of remapping, you should set a variable like this:
let NERDTreeMapChangeRoot='l'
let NERDTreeMapUpdir='h'
Thank you this worked for me
you're welcome, I'm glad it worked