imap <c-x> <esc>

Where imap is "insert mode mapping", <c-x> is control-x (or whatever you'd
want), and <esc> is the action the mapping takes. In this case, just
hitting escape.

Also note that ctrl-[ is interpreted by most terminals as an escape key as
well, if you ever find yourself lacking an escape key on your keyboard
(ohh, hello ipad keyboard case).




On Mon, Jan 7, 2013 at 6:10 AM, surr.name <[email protected]>wrote:

> Hi!
> Is there any way to switch mode automaticaly to NORMAL when
> <Ctrl>+<something> pressed and Vim is in INSERT mode?
>
> For example:
> Vim is in INSERT mode, and pressing <Ctrl>+f scrolls the screen.
>
> --
> 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
>

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