Skip to main content
1 of 2
B Layer
  • 20.1k
  • 2
  • 32
  • 59

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.

B Layer
  • 20.1k
  • 2
  • 32
  • 59