Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
Ctrl-[ is escape in ASCII (not specifically ANSI/VT100/etc), and Ctrl is sometimes abbreviated as ^.
I don’t know the exact history of why this is a thing that comes up with vi often. My guess is that ESC on the ADM-3a terminal that vi originally targeted influenced it. On ADM-3a, ESC is where tab is on a PC-101 keyboard, a comfy key to hit while touch typing. When later terminals started to move ESC a couple of rows up it was more ergonomic to hit ctrl-[ instead.
:w
:wq
:x mf
Xx
iW^[:wq
What is ^[ here? Do you literally type that I to the keyboard? Or is it the ANSI escape sequence for Ctrl or something.
I hate whenever I see something binded to the square braces, does not work properly for qwerty or is at least impractical.
Ctrl-[ is escape in ASCII (not specifically ANSI/VT100/etc), and Ctrl is sometimes abbreviated as ^.
I don’t know the exact history of why this is a thing that comes up with vi often. My guess is that ESC on the ADM-3a terminal that vi originally targeted influenced it. On ADM-3a, ESC is where tab is on a PC-101 keyboard, a comfy key to hit while touch typing. When later terminals started to move ESC a couple of rows up it was more ergonomic to hit ctrl-[ instead.