On 20/05/10 02:35, ivan huang wrote:
I have tried:
map<C-/>  command

but it did not work.


No indeed.

The only Ctrl + printable key combinations which Vim recognises (on non-EBCDIC systems) are those defined very long ago by ASCII, when people were arguing whether using 7 bits for each character wouldn't be too many. Here they are:

- Ctrl-? is 0x7F (DEL)
- If <key> is in the range 0x40-0x5F, then Ctrl-<key> is obtained by subtracting 0x40 from the value of <key>. This explains why, to Vim, Ctrl-[ is the same as <Esc>, Ctrl-M is the same as <Enter>, Ctrl-I is the same as <Tab>. - If <key> is a lowercase letter, then Ctrl-<key> is the same as Ctrl + the corresponding uppercase letter.

Now the slash is 0x2F, which is not in the range 0x3F-0x5F, so Ctrl-/ is not defined. On some national keyboards it might give you a different combination (such as what ASCII knows as Ctrl-?) but it most cases it just won't work.


Best regards,
Tony.
--
There are 2 kinds of people in my world: those who know Unix, Perl, Vim, GNU,
Linux, etc, and those who know COBOL.  It gets very difficult for me at
parties, not knowing which group to socialise with :-)
                                                Sitaram Chamarty

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