doc/sethandler.md
IdeaVim allows defining handlers for the shortcuts that exist for both IDE and Vim (e.g. <C-C>).
" Use ctrl-c as an ide shortcut in normal and visual modes
sethandler <C-C> n-v:ide i:vim
This option consist of an optional shortcut and a list of space separated list of handlers:
mode-list:handler mode-list:handler ...
The mode-list is a dash separated list of modes that is similar to guicursor notation
and defines the following modes:
The handler is an argument that may accept the following values:
Examples:
n:ide - use IDE handler in normal modei-v:vim - use Vim handler in normal, visual, and select modesa:ide - use IDE handler in all modesBy using sethandler you can define handlers:
sethandler <C-A> n:vim i-x:ide - use Vim handler in normal mode and IDE handler in insert and visual modes,sethandler n:vim i:ide - use Vim handlers in normal mode and IDE handlers in insert mode.If the definition of the handler is missing for some mode, it defaults to vim:
sethandler <C-X> i:ide - use IDE handler in insert mode and Vim handler in all other modes.