top | item 39404586

(no title)

FPGAhacker | 2 years ago

I've been using vi variants for decades and didn't know ZZ or ZQ. This solves a major pain point for me (mis-typing :q, trying again, now I'm off in the weeds).

discuss

order

sodapopcan|2 years ago

ZZ is particularly nice since it sorta "does the right thing" in that if you have an unwritten empty buffer, it will silently discard it and quit. I guess I haven't really run into this as I was taught ZZ from the beginning but I imagine hitting :wq<cr> on such a buffer is pretty annoying.

FPGAhacker|2 years ago

The worst part is q: is a different command. so if you are trying to :q and miss the colon and try again, you run some other damn f*cking command.