From the torrent, the deluge, the unending tidal wave of this exact meme in various formats. The "exit vim difficult" meme must constitute at least 50% of online content regarding *nix and *nix-adjacent systems. It is so stale that Slackware considers it outdated. It is the "mayonnaise is spicy" equivalent of funny. It is the white bread, picket fence stereotype of meme culture, yes offense. I'd like to say that it's beating a dead horse, but the horse is gone; its flesh has been tenderized, pulverized, and evaporated from the sum total of energy imparted by the constant beating. If the heat death of the universe were to happen tomorrow, and from the uniform vacuum energy a Boltzmann brain were to spontaneously form, it will have been already tired of this meme.
But to answer the question, it was either that, or the big
type :q<Enter> to exit
splash that appears when I open it with an empty buffer, and following its instructions.
No offense to you or your house, but I'm really tired of this meme.
splash that appears when I open it with an empty buffer, and following its instructions.
That's the key to the problem, I have almost never open vim with an empty buffer, almost only used it to open files directly. Since there is no nice splash screen telling you how to exit when you use vi <your_file>, this meme happens.
No offense, but I was dumb enough to wonder why they put a space before ":" and thought something must be broken. Obviously, pressing q and Enter (or typing <Enter>) also didn't work and proved to me that this editor must have crashed in a strange way.
So every time I see vim, it reminds me about my stupidity. The meme eases the pain.
Even if the meme is old, Linux has grown quite a lot in recent years, so there are people who are not tired of the meme yet, and if you stay in some community for a long time, you will notice that many things will be constantly discussed over and over again
Long before I used vim, some dude shared a bunch of vim memes with ":q!" in them.
It was actually vi on some ye olde unix machine, but I remembered the meme and got out, searched up how to use vim, and then jumped back in to edit the file lol.
Probably closed the terminal emulator it was running in and opened a new one before trying to find documentation at my leisure. One of the luxuries of learning Unix commands in a graphical environment.
For a more drastic noob story, I once rebooted a computer because I couldn't get out of GWBASIC. I was familiar with QBASIC at the time and that was a lot easier to get out of if you didn't know what you were doing.
I guess just because how the question was laid out, I'm disqualified as I was taught how to use it the first time I used it. :P
with my first linux -system, I had an experienced friend to hold my hand while installing, configuring and usage - including vim. So, the first thing he taught me was how to exit it. This was sometime in ... 2003-ish?
By looking up the command. It took like two seconds and that was nearly twenty years ago. And I've been using it off and on since then (only off because I've not been consistently using Linux, not because I'm using a different terminal text editor; when on *NIX, vim/vi is pretty much all I've used on the terminal)
I can't remember what I did with vim the first time I used it, but whenever I'm stuck in a cli program and want to go back to the shell, I usually tried ctrl+c first, and if doesn't work, crtl+z.
VI was so pathetic and old - blasphemy! - that I almost gave up on college and the career as I mistakenly thought in my grief, at having to suffer that dreck, that it was all gonna be like that.
Thankfully someone showed me anything different. About 5 options, actually . I picked one and I'm happy to use anything else (eg sed-i) unless vi is the only thing left; and then I decide whether it's worth it.
What a sad old callback to the Vietnam war that is (not for the name; it's that old).
I know the vi cabal will be upset to hear someone who tried it actually doesn't worship it. They're gonna downvote me. That's okay. I got over that hate 30 years ago.
Just remember : there's probably something else you can use and experience more joy, if they haven't demanded everything else be removed.