[ACCEPTED]-NERDTree toggling and keyboard mapping-nerdtree

Accepted answer
Score: 37

to remap in normal mode use

nmap <silent> <C-D> :NERDTreeToggle<CR>

nmap means map 6 in normal mode
imap means map in insert mode

the 5 nore part in nnoremap and its friends prevent expanding 4 the mapping recursively. For example, i 3 use to also hide search string so, in my 2 vimrc I have

nnoremap <silent> <C-L> :noh<CR><C-L>

Without the nore, the above mapping 1 will loop.

More Related questions