mirror of
https://github.com/amix/vimrc
synced 2025-02-28 14:12:51 +08:00
Properly disable sound on errors on MacVim
Current configuration was not disabling that annoying sounds on MacVim. According to help: ``` Use visual bell instead of beeping. The terminal code to display the visual bell is given with 't_vb'. When no beep or flash is wanted, use ":set vb t_vb=". Note: When the GUI starts, 't_vb' is reset to its default value. You might want to set it again in your |gvimrc|. ```
This commit is contained in:
parent
183ca1cfc5
commit
52e1b93cf0
@ -131,6 +131,12 @@ set novisualbell
|
||||
set t_vb=
|
||||
set tm=500
|
||||
|
||||
" Properly disable sound on errors on MacVim
|
||||
if has("gui_macvim")
|
||||
autocmd GUIEnter * set vb t_vb=
|
||||
endif
|
||||
|
||||
|
||||
" Add a bit extra margin to the left
|
||||
set foldcolumn=1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user