2320
Very clever...
(lemmy.ml)
Post funny things about programming here! (Or just rant about your favourite programming language.)
There's a few different ways to write that command in vim, does it accept all of them?
I'm honestly not super familiar with vim. I tried :q! and it accepted it, what are some other ways?
:wq will save and then exit, while :x will save only if the file has been modified and then exit, and then there's ZZ that does the same as :x, plus there are probably others:-)
They explicitly ask for the one that quits without saving, so I'd say :q! is the obvious choice
I agree that it's the most obvious choice, but it also doesn't work when there are hidden buffers open. :qa! and :cq should always work so they are arguably more correct