Re:Tell HN: Vim users, `:x` is like `:wq` but writes only wh...
by pkulak on Saturday January 07, 2023 @01:39PM
(#34291094)
I use :x cus it's one less keystroke. And yes, I still use :q to make sure I don't save in case I changed something by mistake.
[ Parent
| on HN ]
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.