endif
" turn these ON:
- set ek hidden ruler sc vb wmnu
+ set ek vb
" set digraph
" turn these OFF ("no" prefix):
set nodigraph noeb noet nosol
" some colors - as an example "white on black" [use bold fonts]:
" hi normal ctermfg=white ctermbg=black guifg=white guibg=black
" hi nontext ctermfg=blue ctermbg=black guifg=blue guibg=black
- if has("syntax")
- syn on
- endif
" set t_Co=256 " number of colors
" some useful mappings:
- set pastetoggle=<f11>
" with F7 copy all current buffer to clipboard, or a selection.
" with shift-F7, paste all clipboard contents
" highlight PmenuThumb cterm=reverse gui=reverse guifg=Black guibg=#AAAAAA " thumb of the scrollbar
endif
-if version >= 703
- " enable persistent-undo
- set undofile
- " store the persistent undo file in ~/.vim/undo
- set undodir=~/.vim/undo/
+" To enable persistent undo uncomment following section.
+" The undo files will be stored in $HOME/.cache/vim
- " create undodir directory if possible and does not exist yet
- let targetdir=$HOME . "/.vim/undo"
- if isdirectory(targetdir) != 1 && getftype(targetdir) == "" && exists("*mkdir")
- call mkdir(targetdir, "p", 0700)
- endif
-endif
+" if version >= 703
+" " enable persistent-undo
+" set undofile
+"
+" " store the persistent undo file in ~/.cache/vim
+" set undodir=~/.cache/vim/
+"
+" " create undodir directory if possible and does not exist yet
+" let targetdir=$HOME . "/.cache/vim"
+" if isdirectory(targetdir) != 1 && getftype(targetdir) == "" && exists("*mkdir")
+" call mkdir(targetdir, "p", 0700)
+" endif
+" endif
" Source a global configuration file if available
" Deprecated by Debian but still supported by grml