4 ms·
inoremap jk <Esc> inoremap kj <Esc> are essential to me... press both at the same time and you exit insert mode regardless of which one gets pressed slightly
by weaksauce 6y ago
inoremap jk <Esc>
inoremap kj <Esc>
are essential to me... press both at the same time and you exit insert mode regardless of which one gets pressed slightly faster and you never leave the home row and if you press it when you are not in insert mode it's basically a nop unless you are at the start or end of the file. even if you are you might move down or up a line accidentally but i've never had that happen personally.
- nishparadox 6y agoThis is the first thing in my config, whenever I try to setup in a new system. Now "kj" and ":w" has become more like a muscle memory, even when I am just staring at the abyss...
- kzrdude 6y agoThen you can't type words that have jk or kj in them, right? :) Depending on languages used it could be a blocker
- weaksauce 6y agoyou certainly can. it just requires you to wait whatever the timeout is set to. it doesn't come up all that often and i've used it for a long time.
- hopw_roewur_ne 6y agoI tried that, but found it annoying to occasionally get kicked out of insert mode while writing. I ended up rebinding Caps Lock to Escape instead, with Shift+CL to toggle caps; I quite like this rebinding even outside Vim. Two lines in autohotkey on Windows, or setxkbmap in X11.