On Wed, 24 Mar 2010, epanda wrote:

> Hi,
> 
> 
> Christian recently show me that \x0c was the hex code of ctrl-l
> 
> How can I compute the code of those sorts of keys'combination as 
> ctrl-i etc....
> 
> Thank you

Easiest is probably:

i<C-v>(char)<ESC>ga

Stepwise, that's:
i      - enter insert mode
<C-v>  - enter literal character  [ :help i_CTRL-V ]
(char) - type whatever character you want (e.g. ctrl-i)
<ESC>  - exit insert mode
ga     - get ASCII value  [ :help ga ]

For ctrl-i for example, the bottom of the screen reads:
<^I>  9,  Hex 09,  Octal 011

(Ctrl-i is synonymous with <Tab>)

-- 
Best,
Ben

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

To unsubscribe from this group, send email to 
vim_use+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to