News for hackers. Stuff that matters.
Re:Interactive Vim tutorial by thomasahle on Wednesday October 04, 2017 @12:17PM (#15401578)
> especially considering the location of the ESC key

This can be solved by remapping ESC to Capslock.

Re:Interactive Vim tutorial by Tenhundfeld on Wednesday October 04, 2017 @01:03PM (#15401970)
Exactly. 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>
Re:Interactive Vim tutorial by flukus on Wednesday October 04, 2017 @10:10PM (#15406296)
I do it with zz, which I find is consistent with ZZ (save and quit).
Re:Interactive Vim tutorial by andrewstuart2 on Wednesday October 04, 2017 @12:57PM (#15401899)
You 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.
Re:Interactive Vim tutorial by aidos on Wednesday October 04, 2017 @01:15PM (#15402075)
I 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.
Re:Interactive Vim tutorial by Lio on Wednesday October 04, 2017 @04:45PM (#15404457)
Or mapping ctrl to capslock and using C-[ for escape.