You must log in or register to comment.
<C-z>
kill %[1] + suspended (tty output) vim
and then you just press the power button
When I first started my Linux journey about 23 years ago, I only ran it in text mode, since my computer didn’t have the disk space for X. I remember using Vim, and whenever I wanted to close it I would hit Alt-F4, which of course performed a VT switch.
When I inevitably launched Vim again on VT4 and wanted to close it, I obviously coudn’t, but I got the idea that Alt-F5 was a more powerful Alt-F4, so I used that.
After that I figured I was stuck and rebooted the machine.
If you think vim is bad for this, try
dte
:P