问题
does anyone know how to enable Ctrl-o
to switch to normal-mode for one command in viper-mode
or vimpulse
? In viper-mode it's bound to open-line (which is what it does for vanilla Emacs and in vimpulse it is bound to (vimpulse-jump-backward ARG)
. I'm using Viper-mode + vimpulse at level 2.
回答1:
If you're in insert-mode and want to execute one Vimpulse command :
(vimpulse-imap "\C-o" 'viper-escape-to-vi)
(it is bound by default to C-z in insert-mode)
来源:https://stackoverflow.com/questions/3708533/ctrl-o-in-vimpulse