Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes! I know what you mean and it annoys me sometimes, too. Particularly:

1) Hitting escape pops you out and left. So insert - escape - insert - escape, etc, gradually moves the cursor left. This feels weird to me. Everyone calls it "insert mode", but perhaps it would be better called "append" mode, because append is the exact opposite of command mode, in the sense that a - ESC - a - ESC, etc, leaves you in place.

2) It makes it annoying to delete the last n words I typed. I want to go, "oh, mistake! ESC db..." but that leaves the last letter hanging around. I recently realized you can do "ESC daw...", at least.



These are design decisions which were built in eons ago; there was a valid reason for it that was explained to me once but I forget now.

Anyway, there is this in the default vimrc:

  " Professor VIM says '87% of users prefer jj over esc', jj abrams strongly disagrees
  inoremap jj <Esc><Right>
So you can use jj (or any other mapping) instead of Esc and get the behaviour you want.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: