From 52e1b93cf028368c09283ef052493a15907c81f7 Mon Sep 17 00:00:00 2001 From: Tomas Slusny Date: Fri, 16 Sep 2016 01:08:54 +0200 Subject: [PATCH] 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|. ``` --- vimrcs/basic.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vimrcs/basic.vim b/vimrcs/basic.vim index 837469f7..a98823b5 100644 --- a/vimrcs/basic.vim +++ b/vimrcs/basic.vim @@ -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