Thanks for the quick reply! On 04/01/2010 02:55 PM, Vegard Øye wrote:
Date: Thu, 1 Apr 2010 14:06:14 +0200 From: [email protected]
Hello,
with the new vimpulse, I have a problem escaping back to emacs mode. I need this option to run some traditional 'M-x' functions. Up to now I used:
(define-key viper-vi-global-user-map (kbd "\\\\") 'viper-escape-to-emacs)
Unfortunately, this does not work anymore, as using M(Esc) for the next command cancels this escape and inserts the second of the backslash into the buffer...
I'm sorry, but I can't reproduce this. What M-x functions do you need Emacs state for? And why do you rebind `viper-escape-to-emacs' from \ to \\? Please provide more details. :) I need it for functions like to include entries in the bibtex-file and e.g. replacing strings in a file. I rebind it, as I have some other keybindings to \t, \e , \] and \,
Anyway, a quick workaround: C-z toggles Emacs state indefinitely. When you are done running the necessary commands, press C-z to go back to vi state again.
Yes, I know this, but that's not really comfortable. Regards! Fabian