]> git.phdru.name Git - dotfiles.git/blobdiff - .vimrc
.vimrc: Set `visualbell` and `belloff`
[dotfiles.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index 39ca62d8bace29996bcb3dfe95aab026ab8658be..63217bca0f8d6fff3ef2306fb64035f89b9b8d3c 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -99,6 +99,10 @@ endif
 
 set ruler         " Show cursor position below each window
 set showcmd       " Show (partial) command keys in the status line
+set visualbell    " Use visual bell instead of beeping
+if v:version >= 800
+   set belloff=error,insertmode " Do not ring the bell for these reasons
+endif
 
 " Short message for [Modified];
 " overwrite message for writing a file with subsequent message;
@@ -713,8 +717,6 @@ command! Text call Text()
 function! AutoEncoding()
   if &modified && &fileencoding != ""
     call SetupEncoding(&fileencoding)
-  else
-    redraw
   endif
   autocmd! auto-encoding
   augroup! auto-encoding