3 ms·
Unfortunately that answer is wrong. The way they should have been taught is: ZQ - Quit without saving ZZ - Quit with saving
by ElijahLynn 9y ago
Unfortunately that answer is wrong. The way they should have been taught is:
ZQ - Quit without saving
ZZ - Quit with saving
- xs 9y agoBut :q and :quit does in fact quit the program. It's also the command I've been using for 20 years... Why do you think it's "wrong"?
- ElijahLynn 9y agoThose are slower. ZQ is three keypresses. :q is four keypresses.
- GlickWick 9y agoThe people trying to get out of Vim probably don't care about having to press one extra key to escape it.
- ElijahLynn 9y agoRight, but if it is the first thing they learn most will stick with it for the rest of their life. We should teach them the most efficient way first. In my experience almost all of my colleagues over the past 5 years only new of :q, not ZQ.
- belovedeagle 9y agoPsh. Map ; to :, git gud.