On 08/09/2012 04:11 PM, Christian Brabandt wrote:
Hi ping!

On Mi, 08 Aug 2012, ping wrote:

guys:
is there a way to bind ctrl+shift+p differently that ctrl-p ?
google told me NO, since they are the same "key code".
just double check to experts here as last hope or any close workaround...

Please read the faq:
http://vimhelp.appspot.com/vim_faq.txt.html#faq-20.4
and possibly also Question 20.5

regards,
Christian


thanks!
so quick conclusion is:
no way for ctrl-shift-c/v(like in gnome)
fn is the only choice (but not convenient)

side-topic:
speaking of the terminalApp interception, looks xterm is the one has less (no?) of it, means "vim friendly". isn't it?





=========================================
20.5. Why does mapping the <C-...> key not work?

The only Ctrl-printable-key chords which Vim can reliably detect (because they
are defined in the ASCII standard) are the following:

        Ctrl-@                 0x00            NUL
        Ctrl-A to Ctrl-Z       0x01 to 0x1A
        Ctrl-a to Ctrl-z       0x01 to 0x1A
        Ctrl-[                 0x1B            ESC
        Ctrl-\                 0x1C
        Ctrl-]                 0x1D
        Ctrl-^                 0x1E
        Ctrl-_                 0x1F
        Ctrl-?                 0x7F            DEL

Most of these, however, already have a function in Vim (and some are
aliases of other keys: Ctrl-H and Bsp, Ctrl-I and Tab, Ctrl-M and Enter,
Ctrl-[ and Esc, Ctrl-? and Del).

The "safest" keys to use in Vim for the {lhs} of a mapping are the F
keys, with or without Shift: <F2> to <F12> and <S-F1> to <S-F12>. (Some
OSes, including mine, intercept Ctrl-Fn and Alt-Fn, which never reach an
application program such as vim or gvim).

You can try other combinations of Ctrl + any key, but they may either
not work everywhere (e.g. the terminal might not pass that key to Vim,
or they might have unintended side effects (e.g. mapping <C-I> means
also to map <Tab>).

--
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