From: Ulrich Dangel Date: Mon, 8 Nov 2010 16:21:44 +0000 (+0100) Subject: Change the location of the persistent undo file to $HOME/.cache/vim [Closes: issue927] X-Git-Tag: v0.3.84~1 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=a9a0a823c8c0c5c297afa7c4307adf9cf4644628;hp=48a14371ae6e0a0ff6264ed826457b178cf950cb;p=grml-etc-core.git Change the location of the persistent undo file to $HOME/.cache/vim [Closes: issue927] --- 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