X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fvim%2Fvimrc;h=c31a7ff340d0e2d1e91dd49066ce9228fa4eeba1;hb=3aad622c68a3ca1cdd74a376fa2af1636494b377;hp=011311b422f24be26af407060e23a9da6318b9a9;hpb=6805c0d81f61425768d0146f7ca160b034b9f85e;p=grml-etc-core.git diff --git a/etc/vim/vimrc b/etc/vim/vimrc index 011311b..c31a7ff 100644 --- a/etc/vim/vimrc +++ b/etc/vim/vimrc @@ -34,8 +34,6 @@ " set linebreak " Don't wrap words by default set textwidth=0 " Don't wrap lines by default set nobackup " Don't keep a backup file - set backupcopy=no " grml: Overwrite files/links with w! -" set backupcopy=yes " Keep a backup file set viminfo='20,\"50 " read/write a .viminfo file, don't store more than " 50 lines of registers set history=50 " keep 50 lines of command line history @@ -103,14 +101,8 @@ let &titleold = fnamemodify(&shell, ":t") endif -" Source a global configuration file if available -" Deprecated by Debian but still supported by grml - if filereadable("/etc/vim/vimrc.local") - source /etc/vim/vimrc.local - 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 @@ -135,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 @@ -183,11 +171,6 @@ source /usr/share/doc/mercurial/examples/vim/hg-menu.vim endif -" source local configuration file - if filereadable(expand("$HOME/.vimrc.local")) - source $HOME/.vimrc.local - endif - " Vim 7 brings cool new features - see ':he version7'! " The coolest features of Vim7 by mika " ==================================== @@ -255,6 +238,34 @@ if version >= 700 " highlight PmenuSel ctermbg=7 guifg=Black guibg=Orange " selected item " highlight PmenuSbar ctermbg=7 guifg=#CCCCCC guibg=#CCCCCC " scrollbar " highlight PmenuThumb cterm=reverse gui=reverse guifg=Black guibg=#AAAAAA " thumb of the scrollbar - endif + + +" To enable persistent undo uncomment following section. +" The undo files will be stored in $HOME/.cache/vim + +" 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 + if filereadable("/etc/vim/vimrc.local") + source /etc/vim/vimrc.local + endif + +" source user-specific local configuration file + if filereadable(expand("$HOME/.vimrc.local")) + source $HOME/.vimrc.local + endif "# END OF FILE #################################################################