Re:Handy Keymaps in Vim
by zipperhead on Saturday June 01, 2019 @09:32AM
(#20069085)
Make it both! From http://www.economyofeffort.com/2014/08/11/beyond-ctrl-remap-...
xcape -e 'Caps_Lock=Escape;Control_L=Escape;Control_R=Escape'Karabiner Elements is great for doing this kind of remapping on macOS
https://pqrs.org/osx/karabiner/
The equivalent for Windows would probably be AutoHotkey
OS X can natively set Caps Lock (or any of the other modifiers) to CTRL,ALT,CMD,Esc,Caps. in the Keyboard Pref Pane at least as of 10.13.
Of course Karabiner can do quite a bit more than that. But if you can't or don't want to install more software it's a choice available to you.
That's an interesting idea as well. I've always found reaching for the 'Esc' key to be more awkward than the 'ctrl' key, but undoubtedly I use the 'ctrl' key more often than the 'esc' key outside of Vim, so perhaps the sheer volume of use would make it worth it.
I had a tool on a mac that would make caps lock equivalent to escape if it was pressed and released alone, and control if it was chorded. Sounded great on paper but I underestimated how often i press control before realizing I don't want to perform a chord.