Hacker News new | ask | show | jobs
by liamdiprose 2237 days ago
Mapping the sequence 'jk' to Esc supercharged vim for me. Faster, but also helps me stay in the flow longer.

Run `:inoremap jk <Esc>` to try it out.

2 comments

add in kj too and you can just press both keys at the same time and it will work like it was just one key press. the added benefit is that it's basically a no-op from the standpoint of vim too just in case you were already in normal mode.
I wonder if any people remap hjkl to jkl;. Having to shift my hands one key over always annoyed me.
'jk' are on the strongest two fingers on the right hand home row, since that's what you'll be doing the most. 'h' can be hit once or twice with no real effort, but there are better ways to move left and right within a line, such as `bBeEfFwWIA`. I also remap `H` and 'L' to move all the way to either end of the line, but I might be doing it wrong
I just use my index finger for both j and h. Are you used to the arrow keys? I noticed with jkl;, my fingers line up with the arrow-key directions.