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 foundshell returned 127Press ENTER or type command to continueAnd if I click ENTER or anything else, it returns back to Vim. What's going on?
Can't exit Vim with :!q
vim
Use :q!. :!q tells vim to execute a command called q in your example.See also :help ! and :help quit for details