How to disable Vim bells sounds?
Try to use the following line in your .vimrc, .gvimrc files:
set belloff=all
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.
To disable visual bell in Visual Studio 2019 with VsVim extension:
VsVim detects the presence of _vimrc
, so add the following to it:
C:\Users\YourName\_vimrc
set vb t_vb=
Setting other options like errorbells
or beloff
had no effect in VsVim.
For me with gVim it works if I put
set noerrorbells
set vb t_vb=
in ~/.gvimrc
, not ~/.vimrc
.