this post was submitted on 27 Dec 2023
152 points (75.5% liked)

linuxmemes

20437 readers
1113 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] EuroNutellaMan@lemmy.world 50 points 7 months ago (4 children)

If you wanna save changes: :wq

If not: :q!

Else: :SpanishInquisition

[–] metallic_z3r0@infosec.pub 6 points 7 months ago

Hmm, I didn't expect that last one.

[–] youngGoku@lemmy.world 6 points 7 months ago (6 children)

Why do so many people prefer :wq over :x?

[–] EuroNutellaMan@lemmy.world 12 points 7 months ago

Cause I don't like to think about my x

[–] rwhitisissle@lemmy.world 6 points 7 months ago

Because :wq to me means "Issue command write, followed by command quit." "Issue command x" to me means nothing in the context of vim, and ctrl + x on most systems is reserved for cutting, so it just "feels" wrong.

[–] lars@lemmy.sdf.org 4 points 7 months ago

:x was a gamechanger. And it doesn’t update the file’s modify date if you made no changes.

Sometimes I just sit back and think about all that saved time and effort so much that I have actually lost time by switching from :wq.

[–] AVincentInSpace@pawb.social 1 points 7 months ago

same reason I prefer :wq to ZZ. muscle memory.

[–] miningforrocks@lemmy.ml 1 points 7 months ago

There is a other option?

[–] superbirra@lemmy.world 1 points 7 months ago
[–] Andrew15_5@mander.xyz 3 points 7 months ago

I did not expect the Spanish inquisition!

[–] knorke3@lemm.ee 1 points 7 months ago (1 children)

help! i wanna leave!
:wq
why isn't it working?????

[–] EuroNutellaMan@lemmy.world 2 points 7 months ago

You have been chosen by the Vim Dommy Mommy. You cannot leave.