News for hackers. Stuff that matters.
Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by shp0ngle on Saturday January 07, 2023 @07:59PM (#34294869)
:wq just makes more sense to me, it’s “command: write, quit”

ZZ is just.. random?

Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by sodapopcan on Sunday January 08, 2023 @01:05AM (#34296521)
Sure, but we're talking Vim here. Is that more random than `"0p`? Or `ctl-o`? Or `ctl-6`? Mnemonics are important for operations we only perform a few times per day or every other day or less. But we're talking about a _built-in_ mapping for an operation that is performed probably as much as 1000 times per day, give or take. Convenience beats out mnemonics here because you don't need them (if you care to use it).

I also think the bikeshed should be lime green :)

Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by shp0ngle on Monday January 09, 2023 @05:34AM (#34308849)
It’s fine, it’s vim and it’s all random, but I just can never remember ZZ so much as I can wq. That’s all