On 28/10/12 13:36, Alejandro Exojo wrote:
El Sábado, 27 de octubre de 2012, ashwin sathya escribió:
map <C-K><C-c> <leader>cc
map <C-K><C-U> <leader>cu

the <leader>cc and <leader>cu are mapped to NERD commands accordingly. I am
having some trouble mapping C-c (BREAK ?? ) is there any workaround for
this ?

I'm not sure that you should map <C-c>. Seems an important key that is used to
cancel things. Vim might understand that <C-c> to cancel the previous key, so
If the <C-k><C-u> map works for you, is probably that.


It is possible to map Ctrl-C, and the infamous mswin.vim script actually does it. Whether it's a good thing to do is of course a different story, and indeed I wouldn't recommend it either. Having Ctrl-C as part of an {lhs} which starts with something else should be less of a problem. See :help map_CTRL-C

Ctrl-K is one of the rare alphabetic and Ctrl-alphabetic keys not used in Normal mode, so here there is no conflict. It is however not mappable in Insert and Command-line mode, where it is used to enter digraphs and the <> notation of special keys, see :help digraphs-use


Best regards,
Tony.
--
"I'm prepared for all emergencies but totally unprepared for everyday
life."

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to