When I type the character q on my keyboard in vim, it exits vim. Why?
Today I tried it edit a file with the file extension .man. I wanted to edit the file with a macro, so I tried to type qq -- but when the first q was entered, vim closed!
vim test.man This is on a fresh install on Debian 12. I do not have a .vimrc defined.
I renamed the same file with a .man extension to have a .txt extension, and this time I could create a macro as expected -- typing a q doesn't cause vim to exit.
mv test.man test.txt vim test.txt Why is vim exiting when typing a q when trying to edit a file with a .man file extension? And how do I stop this behaviour?