From efcb69a40cdf66327cb511a74b1663e93bd9d47f Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Wed, 22 Dec 2010 11:22:18 +0100 Subject: [PATCH] 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. --- etc/vim/vimrc | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) 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 -- 2.1.4