Remix.run Logo
tommy_axle 9 hours 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

cassepipe 9 hours ago | parent | next [-]

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

tern 9 hours ago | parent [-]

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.

mmahemoff an hour ago | parent | next [-]

Claude's vim bindings don't support ESC mapping, unfortunately for muscle memory. https://github.com/anthropics/claude-code/issues/25306

cassepipe 8 hours ago | parent | prev [-]

Well I have given at least one example. Do you not use bash/zsh/fish/nushell vi modes ?

jeremyjh 8 hours ago | parent [-]

Do you not use web search to verify assumptions ?

cassepipe 6 hours ago | parent [-]

I should have. I don't why I assumed the line editors couldn't handle two keys in a row.

tern 9 hours ago | parent | prev [-]

"jk" is even faster (you get to "roll" your fingers)

qu4z-2 3 hours ago | parent [-]

And keeps you on the same line unless it was the last one, if you were already in normal mode.