News for hackers. Stuff that matters.
Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by JelteF on Saturday January 07, 2023 @02:05PM (#34291415)
ZZ is only 3 keystrokes as opposed to 4 for :x (shift + z + z = 3 and shift + ; + x + enter = 4). It also doesn't require timing the release of shift before the press of x.
Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by pkulak on Saturday January 07, 2023 @11:16PM (#34295956)
Wow! Never knew that existed. If I can undo 20 years of muscle memory, I'll use it. :D

EDIT: Just tried it, and Z being right next to Shift is a deal breaker.

Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by xigoi on Sunday January 08, 2023 @04:55AM (#34297655)
Why not use the other Shift if that's a problem?
Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh... by pfalke on Sunday January 08, 2023 @08:11AM (#34298826)
Switch to a German QWERTZ keyboard. That’ll also help with giving rusty muscle memory a fresh kick.