[ACCEPTED]-NERDTree toggling and keyboard mapping-nerdtree
Accepted answer
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.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.