27 ms·
Vim suggests closing with ":quit" when you hit C-c; the C-x is irrelevant. Upon receiving a C-c, it does not know full well what the user wants to do. When vi
by dllthomas 11y ago
Vim suggests closing with ":quit" when you hit C-c; the C-x is irrelevant.
Upon receiving a C-c, it does not know full well what the user wants to do.
When vim receives a C-c from you (or someone who just stumbled into vim and doesn't know how to exit) the user wants to exit.
When vim receives a C-c from me, it's because I meant to kill the process I spawned from vim, and it ended before the key was pressed. I very much do not want it to quit on me at that point.
Showing a message seems the best compromise.