Last Updated: January 29, 2019
· allolex

Disable error sounds and screen flashing in Vim

To turn off error beeping and flashing in Vim, do this:

set visualbell 
set t_vb=

This can be abbreviated as set vb t_vb=.

Setting the visual bell turns off the audio bell and clearing the visual bell length deactivates flashing.

See the Vim documentation on Wikia for a more detailed explanation.