Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Unfortunately that answer is wrong. The way they should have been taught is:

ZQ - Quit without saving

ZZ - Quit with saving



But :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"?


Those are slower. ZQ is three keypresses. :q is four keypresses.


The people trying to get out of Vim probably don't care about having to press one extra key to escape it.


Right, 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.


Psh. Map ; to :, git gud.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: