From a9a0a823c8c0c5c297afa7c4307adf9cf4644628 Mon Sep 17 00:00:00 2001 From: Ulrich Dangel Date: Mon, 8 Nov 2010 17:21:44 +0100 Subject: [PATCH 1/1] Change the location of the persistent undo file to $HOME/.cache/vim [Closes: issue927] --- etc/vim/vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/vim/vimrc b/etc/vim/vimrc index 505449c..6b5121d 100644 --- a/etc/vim/vimrc +++ b/etc/vim/vimrc @@ -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 -- 2.1.4