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

What will vi users do?


Continue mapping Escape to Caps Lock like we always do :)


'Hey Siri, emulate pressing escape button on keyboard now, please'.


Siri: "I've searched the web for "emulate pressing escape button on keyboard now" for you":


The escape character is ^[ and can always be typed that way.


Have you noticed the correspondence between these alternate terminal incantations and the resultant codes they produce? If an ASCII table is laid out in columns of 32, they are on the same row, e.g.

     (3) ETX <-- C (67)
     (4) EOT <-- D (68)
     (8) BS  <-- H (72)
    (27) ESC <-- [ (91)
I was happy to find some order in what previously seemed arcane stuff.


Remap caps lock -

To be honest, that super-thin row of Esc/F-keys on the 11" Air has been totally useless anyway for real typing, so if I go from there to a new Pro, I wouldn't really miss that stuff.


Using escape in vi is an anti pattern. Use control-[


Why is it an anti-pattern? Surely a single press is more efficient than two?


`imap jj <Esc>` as there are basically no words with two consecutive j's (I use hh for colemak instead)


I usually do C-c or A-j/k/... Esc is not that central to vi.


Caps -> Esc




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: