Remove persistent undo for vim
authorUlrich Dangel <uli@spamt.net>
Wed, 22 Dec 2010 10:22:18 +0000 (11:22 +0100)
committerFrank Terbeck <ft@grml.org>
Wed, 22 Dec 2010 11:51:11 +0000 (12:51 +0100)
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

index 6b5121d..a4652b9 100644 (file)
@@ -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