GravitySpoiled@lemmy.ml to linuxmemes@lemmy.world · 1 year agoHow do I exit vim?lemmy.mlimagemessage-square51fedilinkarrow-up1402arrow-down155
arrow-up1347arrow-down1imageHow do I exit vim?lemmy.mlGravitySpoiled@lemmy.ml to linuxmemes@lemmy.world · 1 year agomessage-square51fedilink
minus-squareThe Stoned Hacker@lemmy.worldlinkfedilinkarrow-up2arrow-down1·1 year ago:x will save and exit. The difference between :x and :wq is that the latter will always write to the buffer, while the former will only do so if theres a change.
minus-squareu/lukmly013 💾 (lemmy.sdf.org)@lemmy.sdf.orglinkfedilinkEnglisharrow-up1·1 year agoSup. And ZZ is like :x, write only if change was made.
:x
will save and exit. The difference between:x
and:wq
is that the latter will always write to the buffer, while the former will only do so if theres a change.Sup. And
ZZ
is like:x
, write only if change was made.