I have made wrong changes in a text, and now I want to leave Vim without saving. I know I have to type :!q while in normal mode, but when I do this, it says:
[No write since last change]
/bin/bash: q: command not found
shell returned 127
Press ENTER or type command to continue
And if I click ENTER or anything else, it returns back to Vim. What's going on?
:q!
(quit, I mean it!), not:!q
(shell escape, pipe current line throughq
) – vonbrand Jan 06 '16 at 00:27:!q
and issued the command several times before just deciding to close the terminal window. – ConstantFun Dec 07 '18 at 05:42