4 ms·
I use `jk` or `jj` instead of esc. Its so much easier imap jj <ESC>
by krat0sprakhar 5y ago
I use `jk` or `jj` instead of esc. Its so much easier
imap jj <ESC>
- knowledge-clay 5y agoI tried this, but it (understandably) caused a delay whenever I typed j alone in insert mode
- jazzabeanie 5y agoYeah, you get used to that.
- csomar 5y agoIt only matters if you are tying "jj". If you are typing "just", it's just as fast and the "delay" is just visual.
- xigoi 5y agoYou can map both jk and kj to Esc, which will allow you to press both of them simultaneously. Then you can set your timeout quite low when in insert mode.
- soraminazuki 5y agoDoom Emacs had this behavior by default, and it caught me by surprise when it prevented me from typing "noto-fonts-cjk." I knew a lot of people do this in Vim, but it took some time to figure out exactly what had happened. Excellent framework though.
- rbonvall 5y agoI've been using this mapping for so long and it's so ingrained in my brain that I completely forgot about it. It used to happened that I'd start typing jjjjj into a textarea or a word processor, and it took me a while to realize what was wrong.