6 ms·
I never understood why people would want to press the same key twice to get to normal mode. Here's what I use: " j + k = normal mode inoremap jk <esc> in
by tasuki 8y ago
I never understood why people would want to press the same key twice to get to normal mode. Here's what I use:
" j + k = normal mode
inoremap jk <esc>
inoremap kj <esc>
And yes, it does happen that I want to enter jk or kj and it exits the insert mode. Usually when pasting something and not more often than about once a month. `:set paste!` to the rescue.
- degrews 8y agoI also recommend jk or kj over jj. Much faster and less strenuous. And it has the added benefit that, if you type it when already in normal mode, it's effectively a no-op (as opposed to jj, which will move the cursor two lines down).