3 ms·
Did this used to be real? It’s just :q, or escape first if you aren’t in normal mode. Is this going over my head?
by idontwantthis 3y ago
Did this used to be real? It’s just :q, or escape first if you aren’t in normal mode.
Is this going over my head?
- xanderlewis 3y ago:q! if you’ve changed something since the last write.
- bauble 3y agoZZ if you're musically inclined.
- IggleSniggle 3y agoZZ and then afterwards `top` just to make sure you really quit
- dfabulich 3y agoMost 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?!?"