User: I accidentally opened vim. How do you even quit this thing?

me: that's their adoption strategy. it's Hotel California of text editors

@nixCraft you need to unplug the computer from the wall and do a killall vi. In this order. It's possible that vim survives, be prepared.
@nixCraft Haha...the first number of times I followed a tutorial that said "type vim $file" I then had to quit terminal because I had no idea how to save the file as instructed in the next step.
@nixCraft That's only Purgatory. EMACS marks the entrance gate to the Nine Circles of Hell
@dragonsidedd @nixCraft Yo what the fuck? What do you use, Visual Studio?

Can't read a few info pages, or what?
@oceane @nixCraft Me? I use vim. It's heavenly. But the OP asserted (presumably tongue-in-cheek) that "it's hard to exit vim", and I just wanted to point out that "<esc>:q!" is easier for Muggles than anything involving "Control" or "Meta" keys
@nixCraft That's better than what they used to say about sccs: The roach motel of version control systems. Sources check in, but they don't check out.

@nixCraft

Crap, now I have to start a vi clone named hotelcalifornia. I already have too many side projects. Thanks a lot!

. . . you know, if I did it in rust and only implemented basic editing . . . AH, IT'S STARTED!

@wakejagr @nixCraft WE WANT THE GIT, WE WANT THE GIT *chanting*
@nixCraft Why does everyone want to quit vim?
@nixCraft now try 'dte'
@nixCraft spoiler: ALT-X to get the : prompt, then either 'exit' if you haven't made any changes, or 'quit -f' if you have, because for some reason if you haven't changed anything 'quit' is an unknown command
@nixCraft That's often how I feel about accidentally opening nano... 😅
@nixCraft I opened vim once. I was a fan since..
Perhaps not only because of the message from Bram about donating to iccf Uganda, but also, i was creating text files upon text files of vim keystroke sequences...while forgetting to Esc(ape).
@nixCraft
1) Reset your computer.
2) Delete Vim.
3) Install a better text editor.
@nixCraft it can't be a coincidence that "Hotel California" and vi were created around the same time.
@nixCraft if anyone actually needs the answer: press esc then type :zz to save changes then quit, or :q! to exit without saving changes and suppress any warnings.

@nixCraft Having messed around with vim while trying to edit config files on my Ubuntu on WSL install, I can attest to just how much of a user interface nightmare it is.

I definitely have had to quit the entire Terminal app just to get out of vim before, lol.

@nixCraft everybody complaining how to quit vim... how does one quit ed????
@nixCraft Vim is also preinstalled on macOS as well