how-to-exit-vim icon indicating copy to clipboard operation
how-to-exit-vim copied to clipboard

The "I don't know how to use vim" way

Open c3d opened this issue 1 year ago • 0 comments

A simple way to quit vim is to use it in a way that is not supported, e.g. when the input is not a terminal:

% echo die | vim
Vim: Warning: Input is not from a terminal
Vim: Error reading input, exiting...
Vim: Finished.

You can improve that passing the -T option, where you see the familiar interface open before vim exits, e.g. echo die | vim -T vt200.

c3d avatar Jun 20 '24 14:06 c3d