3 ms·
I remap Caps-Lock to a Ctrl/Esc combination: When it's pressed and released on its own, it sends an Esc; when it's used as a modifier key (pressed together with
by micheljones 10y ago
I remap Caps-Lock to a Ctrl/Esc combination: When it's pressed and released on its own, it sends an Esc; when it's used as a modifier key (pressed together with another key), it sends a Ctrl. I haven't touched the Esc key in years.
When you consider what the keyboard layout on the machine on which vi was made looked like: http://xahlee.info/kbd/i/vi/terminal_ADM-3A_keyboard.jpg http://xahlee.info/kbd/i/vi/terminal_ADM-3A_keyboard.jpg , it's easy to understand why dual-use caps-lock makes the usage feel smoother and more natural than on regular PC keyboard layout.
For anyone that would like to do this, here are example instructions for both Linux and MacOS:
http://www.economyofeffort.com/2014/08/11/beyond-ctrl-remap-make-that-caps-lock-key-useful/ http://www.economyofeffort.com/2014/08/11/beyond-ctrl-remap-...