To disable “Entering Ex mode” in Vim

ex-mode, vim

I get the following 10X times a day by accident.

Entering Ex mode. Type "visual" to go to Normal mode.

How can you disable the combo which causes it in Vim?

Best Solution

<Nop> is meant for use in mapping keys to "nothing". See :h <Nop>.

:map Q <Nop>

Or put it in your ~/.vimrc:

map Q <Nop>

.