Change the location of the persistent undo file to $HOME/.cache/vim [Closes: issue927]
authorUlrich Dangel <mru@grml.org>
Mon, 8 Nov 2010 16:21:44 +0000 (17:21 +0100)
committerUlrich Dangel <mru@grml.org>
Mon, 8 Nov 2010 16:23:32 +0000 (17:23 +0100)
etc/vim/vimrc

index 505449c..6b5121d 100644 (file)
@@ -248,11 +248,11 @@ if version >= 703
  " enable persistent-undo
  set undofile
 
- " store the persistent undo file in ~/.vim/undo
- set undodir=~/.vim/undo/
+ " 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 . "/.vim/undo"
+ let targetdir=$HOME . "/.cache/vim"
  if isdirectory(targetdir) != 1 && getftype(targetdir) == "" && exists("*mkdir")
   call mkdir(targetdir, "p", 0700)
  endif