Add <C-U>
to the beginning of your mapping right after the opening :
. For example:
vnoremap XX :<C-U>silent! ..etc..
This will clear whatever may currently be on the command line.
See :h c_CTRL-U
.
Add <C-U>
to the beginning of your mapping right after the opening :
. For example:
vnoremap XX :<C-U>silent! ..etc..
This will clear whatever may currently be on the command line.
See :h c_CTRL-U
.