Tip #285: Don't use the escape key!
tip karma |
Rating 150/67, Viewed by 4379
|
created: |
|
July 22, 2002 10:26 |
|
complexity: |
|
basic |
author: |
|
David A. Rogers |
|
as of Vim: |
|
5.7 |
Vim (any vi really) is a dream for touch typists... Until you want to switch from insert mode to normal mode. Then you've got to reach way up to whack the escape key.
Or at least that's what I was doing until I realized that (drum roll please)
Esc is exactly equivalent to control-[ (that's the control key plus the left square bracket key)
That little bit of knowledge, plus mapping my caps lock to another control key, was what turned my fascination with Vim into true love. You never have to lose track of the home row again!
For Xfree86 users - you can make the capslock key another control key by adding
Option "XkbOptions" "ctrl:nocaps"
to the InputDevice section of your XF86Config file.
For Windows NT/2000 users - use the following .reg file to do the same thing:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
<<Mapping to print syntax highlighted buffer in B&W; |
Recover after doing something... ugly. >>
Additional Notes
|