How to remap a NERDTree shortcut in VIM

Posted by btelles on Super User See other posts from Super User or by btelles
Published on 2010-04-04T23:45:09Z Indexed on 2010/04/04 23:53 UTC
Read the original article Hit count: 533

Filed under:
|
|
|

Hi There,

I use the Dvorak keyboard layout with VIM, and the 't' key is the 'up' motion when editing a regular file.

The problem is that NERDTree remaps 't' to open files in a new tab. How can I undo that mapping and use 't' for the up motion in NERDTree?

Here are the relevant lines from my vimrc file and from the NERDTree plugin.

My .vimrc:

no t k

NERDTree plugin file:

exec "nnoremap <silent> <buffer> ". g:NERDTreeMapOpenInTab ." :call <SID>openInNewTab(0)<cr>"

call s:initVariable("g:NERDTreeMapOpenInTab", "t")

let @h=@h."\" ". g:NERDTreeMapOpenInTab.": open in new tab\n"

© Super User or respective owner

Related posts about vim

Related posts about gvim