2

When using Vim (specifically, MacVim), I hit ESC about a thousand times a day. It's a bit far to reach for such an important key.

Has anybody mapped this to something more comfortable? If so, how did you do it?

Nathan Long
  • 27,435

2 Answers2

2

Caps Lock is a nice alternative but these are predefined:

  • CTRL-[ which is completely equivalent to ESC and
  • CTRL-C which is in most cases* the same as ESC

also, a very common mapping is the jj (or even <leader>j) since the sequence 'jj' is extremely rare in typing.

There is a similar discussion on SO

*it will not expand abbreviations

Eelvex
  • 191
  • 7
1

You could remap the Caps Lock key to an ESC key which is shown via the following superuser question. Map CapsLock key to ESC in Mac OS X

paradd0x
  • 9,351