4 ms·
I use "kj" for escape, "lkj" for escape-and-save, and ";lkj" for escape-and-save-and-quit since I can roll my fingers faster that way that doing "jk" or "jj" I
by valbaca 10y ago
I use "kj" for escape, "lkj" for escape-and-save, and ";lkj" for escape-and-save-and-quit since I can roll my fingers faster that way that doing "jk" or "jj"
It also has the advantage of usually being a no-op in visual mode (kj moves up, then moves down). "jk" has the same advantage. Whereas "jj" will move you down.
I also have my caps-lock key mapped to escape.
(EDIT: learning from bilalq https://news.ycombinator.com/item?id=13101691 https://news.ycombinator.com/item?id=13101691)
"during insert, kj escapes, `^ is so that the cursor doesn't move
inoremap kj <Esc>`^
"during insert, lkj escapes and saves
inoremap lkj <Esc>`^:w<CR>
"during insert, lkj escapes and saves and QUITS
inoremap ;lkj <Esc>:wq<CR>