3 ms·
Most users who struggle with this don't know that vim has modes, and often have found themselves forced into vim accidentally, e.g. having automatically launche
by dfabulich 3y ago
Most users who struggle with this don't know that vim has modes, and often have found themselves forced into vim accidentally, e.g. having automatically launched vim by running "git commit."
In order to quit vim, you have to understand the difference between normal mode and insert mode, and you have to understand the difference between :q and :q!.
If you :q when you wanted to :q!, you're going to get this useless error message:
E37: No write since last change (add ! to override)
But if you don't know about :q!, "(add ! to override)" means nothing. Override what? How do I "add !"??
And since you're a total novice, it's likely that you don't even know that you haven't saved your changes to disk yet, so it's not clear to you that "No write since last change" is calling you to :w before :q.
And if you try to explain all that, the user gets pouty. "I just want to quit vim! Why do I have to learn all of this stuff just to stop using it?!?"