From: Ulrich Dangel Date: Wed, 22 Dec 2010 10:22:18 +0000 (+0100) Subject: Remove persistent undo for vim X-Git-Tag: v0.3.88~1 X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=efcb69a40cdf66327cb511a74b1663e93bd9d47f Remove persistent undo for vim After some discussion with ft and mika we decided that persistent undo should not be part of our default configuration as it changes existing workflows. --- diff --git a/etc/vim/vimrc b/etc/vim/vimrc index 6b5121d..a4652b9 100644 --- a/etc/vim/vimrc +++ b/etc/vim/vimrc @@ -244,19 +244,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/ - - " 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 + +" 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