3 ms·
why don't you map escape to caps lock?
by shime 13y ago
why don't you map escape to caps lock?
- paulnechifor 13y agoThis is what I do too. Caps lock is a mistake anyway. The keyboards vi was written on had ESC where the tab key is on most keyboards now[1]. [1] http://en.wikipedia.org/wiki/File:KB_Terminal_ADM3A.svg http://en.wikipedia.org/wiki/File:KB_Terminal_ADM3A.svg
- deathanatos 13y agoAnd if you're one of those skeptics that thinks "but I sometimes use caps lock to type C_STYLE_CONSTANTS, and I need it!", there's a wonderful thing I call two-shift caps lock: you press both shift keys at the same time, and it toggles caps lock. Now you have your Shift keys, and your caps lock, and a key that really truly has no purpose. Now go forth into the world, and remap thy keyboard. In GNOME: System → Preferences → Keyboard; Layouts; Options; Miscellaneous compatibility options → "Both Shift-Keys together toggle Caps Lock" (You can also remap Caps Lock in this same dialog, so the change isn't just for Vim. It's under "Caps Lock key behavior". Also, having a compose key is awesome.)
- ejk314 13y agoIs there a way to do this without installing addons to vim?