Hacker News new | ask | show | jobs
by tommy_axle 47 days ago
Map to "jj" and call it a day since your finger is already on the home row

Also ctrl + [ is standard terminal/ascii for esc so that might be a bit more ergonomic than reaching for esc

2 comments

Yes but then you get used to jj (or jk) which might not be available on other vi modes (shells vi modes, gdb, glide browser ?) and it's overall quite nice to quickly escape any situation by having the key be closer.

Ctrl + [ would be acceptable if it wasn't, imo, the most important function of the editor.

EDIT: My bad, you can do it with Glide apparently

I've yet to come across something with vim bindings that lacks a .vimrc where you can map 'jk'. Either way, switching back to ESC is as annoying as it is in the first place.
Claude's vim bindings don't support ESC mapping, unfortunately for muscle memory. https://github.com/anthropics/claude-code/issues/25306
Well I have given at least one example. Do you not use bash/zsh/fish/nushell vi modes ?
Do you not use web search to verify assumptions ?
I should have. I don't why I assumed the line editors couldn't handle two keys in a row.
"jk" is even faster (you get to "roll" your fingers)
And keeps you on the same line unless it was the last one, if you were already in normal mode.