issue with viper-escape-to-emacs
Vegard Øye
vegard_oye at hotmail.com
Fri Apr 22 21:33:58 CEST 2011
On 2011-04-22 20:36 +0200, Isaac wrote:
> Hello, I am still trying to remap c-z (to make it undo, but use
> C-\ for toggling), any suggestions to do it efficiently?
For "ESC" and "C-z", Viper defines a set of "intercept maps" which
have precedence over all other maps. This should do what you want:
(define-key viper-vi-intercept-map "\C-\\" 'viper-toggle-key-action)
(define-key viper-vi-intercept-map "\C-z" 'undo-tree-undo)
(define-key viper-emacs-intercept-map "\C-\\" 'viper-change-state-to-vi)
(define-key viper-emacs-intercept-map "\C-z" 'undo-tree-undo)
--
Vegard
More information about the implementations-list
mailing list