Micro blogpost remap jj to escape
I want to move as quick as possible in Vim. Reaching for the escape key is a drag and makes me move my fingers of the home row.
Let us move remap the escape-key to
inoremap jj <esc>
But wait there is more!
Of course this already works but it does not force us to actually use
How could we force ourselves to use
jj and make it a pain to use escape?
Let us map escape to escape and echo a message.
This will let us use escape as normal but will flash a message at the bottom making it an annoyance to use.
inoremap <esc> <esc>:echom ">>> Okay, I'll escape for your this time. <<<"<CR> inoremap jj <esc>
And that’s it for this short blog post on vim and remapping the escape key :)