On 16/04/10 18:13, Miao Jiang wrote:
I try
imap <C-=> =>
but it seems no effect.
How to imap <C-=> ?
Short answer: You don't.
Long answer: see below.
My environment is vim 7.2 in Ubuntu 9.04
Thanks
Long answer: When <key> is a printable ASCII character (i.e., a
character in the range 0x20 to 0x7E), Vim uses the ASCII definitions of
what Ctrl-<key> means or doesn't mean. These ASCII definitions are as
follows:
1) For <key> = 0x3F (question mark), Ctrl-? = 0x7F (DEL);
2) For <key> in the range 0x40 to 0x5F (@, A to Z, [, \, ], _ in that
order), Ctrl-<key> = <key> - 0x40 (i.e. 0x00 to 0x1F);
3) For <key> in the range 0x61 to 0x7A (a to z), Ctrl-<key> =
Ctrl-(upcase(<key>)) (i.e. 0x01 to 0x1A);
4) For *all* other values of <key> (i.e. 0x20 to 0x3E, 0x60, and 0x7B to
0x7E), Ctrl-<key> is UNDEFINED.
The equal sign is 0x3D so it falls in category 4 above.
The only case when holding Ctrl and hitting = might give something
recognizable to Vim would be if, on your national keyboard, that action
produced a _different_ Ctrl-key combination, such as (for example)
Ctrl-_ (0x1F).
Best regards,
Tony.
--
If God had wanted you to go around nude, He would have given you bigger
hands.
--
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
Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en