Sometimes in vim I accidentally type: Q instead of: q in normal mode. To get around this, I added this to my .vimrc:
command Q q
This works fine for: Q, but in case I type: Q !, vim says "No! Allowed". How to make vim accept: Q! and interpret it as: q!
source
share