X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fvim%2Fvimrc;h=064b15c872299c30f91c9591c2466adf2b6ee058;hb=2f64ae016b211b59ddd38b1ad2026b2ff9336328;hp=6b5121d833903f7927e6ac8945e6e1fac048b6c3;hpb=a9a0a823c8c0c5c297afa7c4307adf9cf4644628;p=grml-etc-core.git diff --git a/etc/vim/vimrc b/etc/vim/vimrc index 6b5121d..064b15c 100644 --- a/etc/vim/vimrc +++ b/etc/vim/vimrc @@ -86,7 +86,7 @@ " set autowrite " Automatically save before commands like :next and :make " When switching between different buffers you can't use undo without 'set hidden': set hidden " Hide buffers when they are abandoned -" set mouse=a " Enable mouse usage (all modes) in terminals + set mouse= " Disable mouse usage (being "a" AKA all modes in Vim >=8) in terminals set wildmenu " command-line completion operates in an enhanced mode set pastetoggle= " don't change text when copy/pasting @@ -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 @@ -216,7 +212,7 @@ if version >= 700 " highlight SpellRare term=reverse ctermbg=13 gui=undercurl guisp=Magenta " rare word " highlight SpellLocale term=underline ctermbg=11 gui=undercurl guisp=DarkCyan " word only exists in other region - " set maximum number of suggestions listed to top 10 items: + " set maximum number of suggestions listed top 10 items: set sps=best,10 " highlight matching parens: @@ -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 ~/.cache/vim - set undodir=~/.cache/vim/ +" 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 . "/.cache/vim" - 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