Re:How to boost your Vim productivity
by positr0n on Tuesday June 02, 2015 @01:19PM
(#9647361)
Even better:
I just hit both and j at the same time with my pointer and index fingers so it's essentially one keystroke.
[ Parent
| on HN ]
`kj` has worked really well for me (except, actually, when trying to write a blog post about a recent trip to Reykjavik, but that's the one time it's bitten me versus the shitton of time it's saved). I also have `zkj` mapped to `<ESC>:w<CR>` to save AND exit insert mode.
Re:How to boost your Vim productivity
by thomasahle on Tuesday June 02, 2015 @05:48PM
(#9649258)
How does this work? What if you are in insert mode and actually want to type j or k?
Re:How to boost your Vim productivity
by leephillips on Tuesday June 02, 2015 @06:24PM
(#9649447)
It's the combination jk (or kj) that is set up to switch from insert to normal mode. The idea is that this combination rarely occurs in English text. The drawbacks are a slight delay in cursor movement when typing j or k as vim waits to see what comes next, and momentary confusion when you inevitably need to actually insert these sequences.