Making viper mode in emacs use C-[ for escape rather than escape

November 18, 2009 at 2:59 pm 1 comment

Pressing the actual escape button is far too much effort, so my brain seems to have decided to learn to us C-[ in vim in preference to escape.

To get this working in viper add the following line:

(setq viper-ESC-key “\C-[“)

To your emacs init file before you have required viper. Note that this variable cannot be set in your .viper file or changed after you have loaded viper, or rather it can but it has no effect.

Advertisements

Entry filed under: Uncategorized. Tags: , , .

viper-want-ctl-h broken when set in .viper Getting emacs to behave more like vim

1 Comment Add your own

  • 1. Geoff Prewett  |  December 23, 2009 at 1:51 am

    This has been driving me nuts ever since Emacs 22! Thanks for posting the fix! How did you find it?

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


November 2009
M T W T F S S
« Aug   Jan »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

%d bloggers like this: