3 ms·
> especially considering the location of the ESC key This can be solved by remapping ESC to Capslock.
by thomasahle 9y ago
> especially considering the location of the ESC key
This can be solved by remapping ESC to Capslock.
- Lio 9y agoOr mapping ctrl to capslock and using C-[ for escape.
- andrewstuart2 9y agoYou can also remap it to multiple keys. My preference is `jk`, since that letter combination is rarely used, still on home row, and can be typed about as fast as a single key. Useful, since it's a common action I take.
- aidos 9y agoI go for jj since it removes the mental overhead. Often I'm just pawing through the code from top to bottom and in either normal or insert mode I just start hammering at jj and I start moving.
- Tenhundfeld 9y agoExactly. Or remap it to any key combination that makes sense for your work, if you like using Capslock for its original purpose, which I happen to. For example, I have jj and jk mapped to ESC. So I just tap j twice while in insert mode, and it switches to normal/command mode. If you find yourself needing to type jj or jk often in insert mode, just pick other letters that make sense for you. To use mine, plop these in your .vimrc: inoremap jj <Esc> inoremap jJ <Esc> inoremap jk <Esc>
- flukus 9y agoI do it with zz, which I find is consistent with ZZ (save and quit).