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

>My default editor is vim and don't have issues with escape

if you are using vim, it is more efficient to use ctrl+[ instead of the escape key. This way your hands are staying where they mostly are.




Or map Esc to `jk`. Gold.


never thought about it! Thanks!


Just don't forget about it if you're writing something about Dijkstra in vim.


Or just map caps lock to escape. Then you replace an almost useless home row key with an extremely useful one.


> if you are using vim, it is more efficient to use ctrl+[ instead of the escape key

I'm always amazed by how, after using vi(m) for so many years one can always learn something new. I opened a session and tried it out and then found my hand moving to the escape key automatically...


Ctrl-c does the same and it is easier to press.


it's not 100% equivalent, for example C-v (select visual block), I, ..., C-c will cancel the block prepend action, whereas esc or C-[ will execute it.

Took me a while to realise that when messing around with visual/block.

I still mostly use C-c from muscle memory though, but do occasionally swear at it.


I see this caveat all the time, why don't people just rebind C-c to Esc and be done with it




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: