X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fvim%2Fvimrc;h=c31a7ff340d0e2d1e91dd49066ce9228fa4eeba1;hb=cb300a40c609b818e87edfc0d35ef2c783c28f59;hp=505449c98ad21b4eda40326d786e6fb2b9c8c677;hpb=6105e243f40705e8cc1653bbb3863475b3e8a311;p=grml-etc-core.git diff --git a/etc/vim/vimrc b/etc/vim/vimrc index 505449c..c31a7ff 100644 --- a/etc/vim/vimrc +++ b/etc/vim/vimrc @@ -102,7 +102,7 @@ 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 @@ -127,13 +127,9 @@ " 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= " with F7 copy all current buffer to clipboard, or a selection. " with shift-F7, paste all clipboard contents @@ -244,19 +240,23 @@ if version >= 700 " 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