Monday, January 7, 2013

Re: auto switch mode to NORMAL when + is pressed

On Mon, Jan 07, 2013 at 05:28:23PM +0200, Литичевский Вова wrote:
> looks like the question was wrong formulated.
> I've meant something like this

> imap <c-f> <esc><c-f>i

> but for all keys combinations with <Ctrl>
> but thanks anyway!

are you aware of <C-O>? used in insert mode it allows one normal mode
command then returns you to insert mode. In your example above

<C-O><C-F>

when executed from insert mode would leave insert mode, perform <C-F>,
and return you to insert mode.

see

:h i_CTRL-O

sc

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

No comments: