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
If the idea of hitting escape didn’t spark for them, I don’t think they can even get into insert mode
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.
Well, depending on how long one is trying to exit Vim and hence the level of frustration, exiting Vim might involve the use of a sledgehammer…
!sudo poweroff
Please don’t put the punchline in the title.
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.
:x
will save and exit. The difference between:x
and:wq
is that the latter will always write to the buffer, while the former will only do so if theres a change.Sup. And
ZZ
is like:x
, write only if change was made.
I like
:cq
for if I want to cancel my git commit message (or similar)
Wait, has he entered Vim in his mind??
That’s what everyone who starts learning it does. Then you.
jjjj
websites or:wq
documents, and eventually end up installing vim-like plugins for everything
Turn it off and back on again.
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?
emacs is close to that besides all the ctrl+ combinations being nonsensical. the actual reason either arent very popular is the steep initial curve and the fact that most people dont even care about editing text that much and also the delayed gratification for the amount of time it takes to get used to. but once ure used to vim u kinda want vim everywhere
sure, pull requests welcome. good luck
Haha not gonna happen
:wq!
Why not just :wq
Gotta let it know we mean business! /s
OR :x at that point.
How do I put the punchline in the title?
Freak out and force-power-down your PC, and never accidentally open vim again
ctrl-x
:x
ZZ
I got VIM (possibly NeoVIM, I don’t recall) on a thumb drive a few weeks back for an assignment for one of my college courses because I can’t install anything on the college library computers and it threw me off because I had no experience with it before then. Thank goodness for the Internet knowing what to do because I had absolutely no idea how to do just about anything in it.
I’ve recently made the choice to switch to neovim as my main terminal editor and I like it. Even doing coding in it. But bigger projects I still use vs code.
:q!
:!pkill vim
Alt + SysReq + o