国内的帖子太无语了,全都一样,还都没有
其实很简单:
Disable beep and flash with gvimrcEdit
Another method to disable beeping and flashing is to put a command into your vimrc to handle terminal Vim, and another command into your gvimrc to handle gvim. This works on Unix and Windows systems.
Put the following in vimrc:
set noeb vb t_vb=
Put the following in gvimrc:
set vb t_vb=
The gvimrc file is in the same directory as vimrc; see vimrc for the proper file name.
参考文章: