P
P
pikko2013-01-07 16:34:47
vim
pikko, 2013-01-07 16:34:47

Auto-switch mode when pressing combinations with

Is there a way, when Vim is in insert mode , to automatically switch the mode to normal by pressing any <Ctrl> control combination, execute it, and automatically switch the mode to insert ?

For example,
Vim is in insert mode ,
pressing <Ctrl>+f
switches the mode to normal mode , scrolls the screen and switches back to insert mode .

UPDATE:


so far I have found two options:

1) for imap iterate all the necessary combinations
, for example, for the example above, it will be

imap <cf> <esc><cf>i

2) press first <co>

<co><cf>

But maybe there is a solution it is better?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Konofeev, 2015-03-25
@konofeev

I use the exit from the editing mode by jj Plus, I set up automatic switching to the Latin alphabet when I switch to normal mode, and when I switch to editing mode, the layout is restored.
Used to always be in normal mode, since it is he who is the main one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question