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;
function! AutoEncoding()
if &modified && &fileencoding != ""
call SetupEncoding(&fileencoding)
- else
- redraw
endif
autocmd! auto-encoding
augroup! auto-encoding