How to disable Vim bells sounds?

前端 未结 6 700
一整个雨季
一整个雨季 2021-02-01 12:30

I am trying to disable the error bells on vim, both visual and audio. However I cannot get them to stay off.

I have the following in my vimrc:



        
6条回答
  •  有刺的猬
    2021-02-01 13:30

    I tried several times with different configurations but none worked. It seems that gVim resets the visual bell when the GUI starts. The only way it works for me is this snippet at the end of your .vimrc (or _vimrc if you are using Windows):

    set visualbell t_vb=
    if has("autocmd") && has("gui")
        au GUIEnter * set t_vb=
    endif
    

提交回复
热议问题