|
Edited on Sat, Feb 28, 2009 at 2:50 a.m. by
swerdna.bob
| |
How to map the Caps Lock key to EscapeBack to ProgrammingStuff. Back to MainPage. I very rarely use Caps Lock, yet I'm reaching for Escape hundreds of times per day. Alas, this is the lot of a vim user. By remapping Caps Lock to Escape, I can switch modes in vim without leaving the home keys. Here's how. In Linux, add these lines to ~/.Xmodmap (create ~/.Xmodmap if it doesn't exist):
and then run xmodmap to use the new config:
On Windows XP, create a file remap.reg with this content:
Save the file, and double click it to import the key into your registry. Alternatively, you could Import from RegEdit. This may require a reboot to take. On Mac OS 10.4 and above, http://c2.com/cgi/wiki?RemapCapsLock says:
Back to ProgrammingStuff. Back to MainPage. |
|