3 ms·
`ZZ` to save and quit, `ZQ` to quit without saving. Sorry, I can't help myself.
by Jenk 1y ago
`ZZ` to save and quit, `ZQ` to quit without saving. Sorry, I can't help myself.
- Brian_K_White 1y agoI've always used :x or :x! and no longer remember why. Probably it's a bad idea like without actually looking right now I think it might mean to ignore permissions (if you're root enough) and just write even if perms would have blocked it. Hm, maybe x means wq and just the ! means force.
- mklein994 1y agoIt's actually a bit more nuanced: `:x` is like `:wq`, but only writes if changes have been made. `:x!` has the same semantics as `:wq!`.
- humanperhaps 1y agoI feel like the default behavior should be to not write unless changes have been made. I may be misunderstanding here, but what would be getting written if nothing's been changed?
- greiskul 1y agoMetadata about the file like modification time.
- johannes1234321 1y agoIt would overwrite changes made by external programs.
- BoiledCabbage 1y agoThe fact that everyone says the meme is dead, but in this small thread there are 5 different people posting how to exit, and none of them are the same says there is still pretty good substance behind that meme.
- Brian_K_White 1y agoI think we're all kind of implicitly acknowledging the truth of the meme. I mean that was definitely a conscious part of my own comment.
- entelechy0 1y ago[dead]