I have made a key mapping for Vim’s tab functionality as
318 map <C-h> : tabprevious<CR>$
319 map <C-l> : tabnext<CR>$
320 map <C-t> : tabnew<CR> <Esc>:NERDTree<CR>$
but it does not seem to work . Any idea ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure what the leading numbers and trailing
$are for.Try these:
All characters in the mapping are treated literally (as if you typed them). Note that the
noremapversions are safer because they are nonrecursive, although it makes no difference in this case. Also,nnoremapis restricted to normal mode, which makes sense for these mappings (you don’t want to be insert mode while you are switching between tabs).