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;
set t_Sb="\e[4%dm"
endif
+ " KP_Up -> Up
+ map <Esc>Ox <Esc>OA
+ map! <Esc>Ox <Esc>OA
+ " KP_Down -> Down
+ map <Esc>Or <Esc>OB
+ map! <Esc>Or <Esc>OB
+ " KP_Right -> Right
+ map <Esc>Ov <Esc>OC
+ map! <Esc>Ov <Esc>OC
+ " KP_Left -> Left
+ map <Esc>Ot <Esc>OD
+ map! <Esc>Ot <Esc>OD
+ " KP_Home -> Home
+ map <Esc>Ow <Esc>[7~
+ map! <Esc>Ow <Esc>[7~
+ " KP_End -> End
+ map <Esc>Oq <Esc>[8~
+ map! <Esc>Oq <Esc>[8~
+ " KP_Prev (PgDn) and KP_Next (PgUp) work fine, no mapping is required
+
" 'autoselect' to always put selected text on the clipboard;
" 'unnamed' to use the * register like unnamed register '*'
" for all yank, delete and put operations;
function! AutoEncoding()
if &modified && &fileencoding != ""
call SetupEncoding(&fileencoding)
- else
- redraw
endif
autocmd! auto-encoding
augroup! auto-encoding