vim NERDTree shortcut to an existing function
Posted
by
Ned Batchelder
on Super User
See other posts from Super User
or by Ned Batchelder
Published on 2012-04-09T12:56:13Z
Indexed on
2012/04/13
23:33 UTC
Read the original article
Hit count: 360
I want to use right-arrow to open a node in NERDtree. I see there is NERDTreeAddKeyMap, but I'm too much of a vimscript newb to know how to invoke it properly. I want right-arrow to invoke activateNode. I've done it by adding this line into NERD_tree.vim itself:
exec "nnoremap <silent> <buffer> <Right> :call <SID>activateNode(0)<cr>"
but I want to do it the right way in my .vimrc
© Super User or respective owner