How to remap a NERDTree shortcut in VIM
- by btelles
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"