this post was submitted on 25 Oct 2023
2280 points (99.1% liked)

Programmer Humor

32190 readers
437 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

I'm trying out Obsidian for taking notes, and this made me laugh.

you are viewing a single comment's thread
view the rest of the comments
[–] Vash63@lemmy.world 32 points 11 months ago (22 children)

There's a few different ways to write that command in vim, does it accept all of them?

[–] Jorgelino@lemmy.ml 17 points 11 months ago (19 children)

I'm honestly not super familiar with vim. I tried :q! and it accepted it, what are some other ways?

[–] OpenStars@kbin.social 8 points 11 months ago (5 children)

: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:-)

[–] ray@kbin.social 17 points 11 months ago

The question specifically asked for "the command to quit Vim without saving"

load more comments (4 replies)
load more comments (17 replies)
load more comments (19 replies)