When using NERDTree, I would like to remap the left and right arrow to move up and down a directory.

I believe the left arrow has to be mapped to 'u' but I do not know how to do this only when NERDTree is the active window.

Thanks!

有帮助吗?

解决方案

Try this:

autocmd FileType nerdtree nmap <buffer> <left> u
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top