They might be stuck in insert or replace mode. Nobody mentioned hitting escape before
:x or :q!
Lol, as if they haven’t already tried Esc half a dozen times before googling how exit vim
One great thing about this joke is a that I doubt there’s anyone left who doesn’t know how to exit vim.
Was watching a twitch streamer learning linux, and chat convinced them to open vim for the first time. Not a single person gave the real answer of how to exit, all joke answers like “Power off,” and it was hilarious.
I have no idea, but I know it’s awful
It’s really not that bad.
[
Escape to exit input mode and enter command mode, then the command indicator ] :wq:
w
for write andq
for quit. To quit without writing force it with:q!
. Done.
:wq!
Why not just :wq
OR :x at that point.
I have the feeling these editors only make sense on US keyboards. Like “:” for what? This is not a primary sign anywhere, why not just control like a normal person, working on every keyboard?
its just a neat button on the home row on qwerty yea
Thats what I mean, “/” too, makes no sense at all for search. Its Ctrl+F, Ctrl+S, Ctrl+O, Ctrl+X etc.
Thats why nano makes more sense for all people, but I suppose vim could be edited to be like that?
Don’t save:
:q!
Save::x
Additionally for save and exit:
:wq
(read as write and quit) orZZ
(without colon).Dude’s in bed.
ZZ
is clearly the superior choice for the sleepy vi user.Personally prefer
:x
probably because it’s a little more ergonomic, as Z is all the way in the corner (QWERTY), and is the same key twice, while:
andx
are in two different spots, and can therefore be hit faster.I know, it’s like millisecond differences, but, hey, I’m a vim user.
I don’t understand why this is such a popular meme. Take 5 minutes to read about how Vim works, and you won’t have any more issues.
I shouldn’t really have to look up the instruction manual of a text editor to do a simple action like close the program. Every single other text editor I’ve ever used was intuitive enough to get started right away, going back to 1989.