For me, the worst key on #Vim is ESC, it's so fucking far away and we need it so badly!
6 comments
@retiolus The typical solution is to remap CapsLock to Esc. If memory serves me right, the guy who initially wrote Vi had a keyboard with Esc exactly there. @retiolus vim.keymap.set("i", "jj", "<ESC>") or vim.keymap.set('i', 'jk', '<ESC>') @retiolus I don't mind it at all. On a large (normal) keyboard the Esc key is so isolated that it's easy to hit with any part of the finger, even the edge of the hand. Also, I keep the hands to the left side of the keyboard (no arrow keys, pgup/pgdn, etc). So, 3-4cm is not that far away... @retiolus I usually use Ctrl+[ which is the same as Esc. Itβs two keys but on opposite hands. Works fantastically for me. |
@retiolus A common alternative, and one I use, is
- swap caps lock and left control on your keyboard map (this is optional, but much more comfortable to me)
- use control-c instead of Esc.