How to disable Vim bells sounds?

前端 未结 6 705
一整个雨季
一整个雨季 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条回答
  •  猫巷女王i
    2021-02-01 13:14

    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.
    

提交回复
热议问题