2334
Very clever... (lemmy.ml)

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 2 years ago

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

[-] Jorgelino@lemmy.ml 17 points 2 years ago

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 2 years ago

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

[-] uzay@infosec.pub 8 points 2 years ago

They explicitly ask for the one that quits without saving, so I'd say :q! is the obvious choice

[-] GiantRobotTRex@lemmy.sdf.org 1 points 2 years ago

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

load more comments (3 replies)
load more comments (16 replies)
load more comments (18 replies)
this post was submitted on 25 Oct 2023
2334 points (99.2% liked)

Programmer Humor

36941 readers
308 users here now

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

Rules:

founded 5 years ago
MODERATORS