cm0002@piefed.world to Programmer Humor@programming.devEnglish · 3 months agoExit Signlemmy.mlexternal-linkmessage-square62fedilinkarrow-up1196arrow-down12
arrow-up1194arrow-down1external-linkExit Signlemmy.mlcm0002@piefed.world to Programmer Humor@programming.devEnglish · 3 months agomessage-square62fedilink
minus-squareTragicNotCute@lemmy.worldlinkfedilinkEnglisharrow-up3·3 months agoI’m pretty sure that’s close without saving changes. :wq would be needed to save.
minus-squareAatube@kbin.melroy.orglinkfedilinkarrow-up2·3 months agoTo be precise, : means bring up commands, w means save, q means exit, and ! means force
minus-squareryper@lemmy.calinkfedilinkEnglisharrow-up2·edit-23 months agoTo be more precise, q means quit the current window. If you’ve split the window, e.g. with :split or :vsplit, use :qa to quit all windows.
minus-squareHeuristicAlgorithm9@feddit.uklinkfedilinkarrow-up2·3 months agoI think it’s w = write and q = quit so the letters make more sense
minus-squaredarklamer@lemmy.dbzer0.comlinkfedilinkarrow-up3·3 months agoNo, it isn’t, x writes only when changes have been made, while w writes unconditionally.
minus-squarejosefo@leminal.spacelinkfedilinkarrow-up0arrow-down1·3 months agoWhy would you want to write again if no changes were made? It’s some obtuse behavior
minus-squaredarklamer@lemmy.dbzer0.comlinkfedilinkarrow-up3·3 months agoOne obvious use-case is to cause the file to get a new timestamp, which for example tools like make look at.
I’m pretty sure that’s close without saving changes. :wq would be needed to save.
To be precise, : means bring up commands, w means save, q means exit, and ! means force
To be more precise, q means quit the current window. If you’ve split the window, e.g. with :split or :vsplit, use :qa to quit all windows.
I think it’s w = write and q = quit so the letters make more sense
Also :x is the same as :wq
No, it isn’t, x writes only when changes have been made, while w writes unconditionally.
TIL. Ty!
Why would you want to write again if no changes were made? It’s some obtuse behavior
One obvious use-case is to cause the file to get a new timestamp, which for example tools like make look at.