How to disable Vim bells sounds?
Solution 1:
Try to use the following line in your .vimrc, .gvimrc files:
set belloff=all
Solution 2:
Assuming you have that problem in GVim, adding the following line
autocmd GUIEnter * set vb t_vb=
in your if has("gui_running")
conditional block should help.
From :help 'visualbell'
:
Note: When the GUI starts, 't_vb' is reset to its default value.
You might want to set it again in your gvimrc.