3 ms·
I use my caps lock key as a right arrow key. Reaching for escape in Vim doesn't really bother me, and I find it surprisingly useful pretty much any time I'm typ
by samdk 16y ago
I use my caps lock key as a right arrow key. Reaching for escape in Vim doesn't really bother me, and I find it surprisingly useful pretty much any time I'm typing.
I use AutoHotkey (http://www.autohotkey.com/ http://www.autohotkey.com/) to remap it on Windows, and xmodmap/xset under X on Linux. If anyone has suggestions for doing this easily under OS X I'd love to hear them.
The AutoHotkey script is this:
SetCapsLockState, ALwaysOff
CapsLock::Right
And the xmodmap/xset commands are basically the same as those mentioned in the article for remapping backspace:
xmodmap -e "remove lock = Caps_Lock"
xmodmap -e "keycode 66 = Right"
xset r 66