Waffelson@lemmy.world to linuxmemes@lemmy.world · 2年前:wq!lemmy.worldimagemessage-square14fedilinkarrow-up13
arrow-up13image:wq!lemmy.worldWaffelson@lemmy.world to linuxmemes@lemmy.world · 2年前message-square14fedilink
minus-squareEuroNutellaMan@lemmy.worldlinkfedilinkarrow-up0·2年前If you wanna save changes: :wq If not: :q! Else: :SpanishInquisition
minus-squarelars@lemmy.sdf.orglinkfedilinkarrow-up1·2年前: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.
minus-squarerwhitisissle@lemmy.worldlinkfedilinkarrow-up1·2年前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.
If you wanna save changes: :wq
If not: :q!
Else: :SpanishInquisition
Why do so many people prefer :wq over :x?
:xwas 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.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.