News for hackers. Stuff that matters.
Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by cyberge99 on Saturday January 07, 2023 @09:23AM (#34288193)
Shift Z Z will instantly save and exit, same as wq!
Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by ergonaught on Saturday January 07, 2023 @09:30AM (#34288256)
I just tried this and I think that in 40ish years of typing on computer keyboards, this is the most difficult thing I've ever typed. And I use emacs.
Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by amalgamated_inc on Saturday January 07, 2023 @09:50AM (#34288463)
What do you mean? Super easy and fluid, I've been doing it for about a decade. Left pinky on left shift, left middle finger (you could try ring I suppose) on zz, tap twice.
Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by ergonaught on Saturday January 07, 2023 @10:48AM (#34289106)
I mean pretty much what I wrote. It's literally the most difficult thing I've ever typed on a keyboard.

Blame my hand geometry or the keyboard or muscle memory or 10,000 other things, I just noted it was super hard and unnatural for me to type that. (The downvoting on that is pretty epic, though.)

Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by amalgamated_inc on Saturday January 07, 2023 @04:05PM (#34292778)
So weird, I literally never, ever typed :wq ever again after the first time I experienced the smooth bliss of ZZ. Maybe you're right about hand geometry and it's just for me. It's satisfying in the way that whacking ESC is, but smoother and gentler.
Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by favadi on Saturday January 07, 2023 @11:01AM (#34289272)
I don't think C-x C-s + C-x C-q is any easier.
Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by Tepix on Saturday January 07, 2023 @09:29AM (#34288243)
Isn't it like ":x"?