|
|
|
|
|
by Veen
3492 days ago
|
|
> I've been told to remap the ESC to CAPS LOCK to vim usage, but I seem to be one of a rare breed who uses the latter the way it was intended to be, so that's a no go for me. Not really relevant, but when Vi was originally developed, the escape key was in a more convenient location — right where the tab key is now. It was never intended for users to have to reach that far to hit such an essential key. https://en.wikipedia.org/wiki/File%3aKB_Terminal_ADM3A.svg Edit: also, Control-c and control-[ do the same thing. |
|
They're not actually the same. C-[ is the same as Esc but C-c is not.
Using C-c to leave Insert mode won't trigger InsertLeave.
If you select a vertical visual block and insert a comma at the end of each line E.g. C-v}$A, Using Esc or C-[ to leave insert mode will insert the comma at the end of every line in the paragraph but using C-c will only insert after the first line.
Also if you get used then to using C-c in Vim then you'll potentially run into issues if you try to use it in other Vi places e.g. anything that uses readline or your shell.
IMHO C-[ is a much better solution for these reasons.