When typing fast, sometimes the :q is taken as :Q and it is annoying when you have to repeat that for twice or thrice before actually quitting the Vim session. Is there a way to make :Q to :q to overcome the above said problem ?
Workaround for :Q to :q while quitting in VIM
vimrc
Instead of mapping or abbreviating, I would use a custom command to actually create a new behavior for this edge-case: command! Q :qNow you can use :Q to have the same effect as :q, without any risk of overriding any function name/other mapping.You can then define other command depending on your usage, adding a !, using W ...Also worth knowing, as a workaround, to map ; to : and : to ;. This make the command line accessible without having to press the shift key, thus preventing the :Q to arise.nnoremap ; :nnoremap : ;