From 279f5fd0ed5c4abb82eb7d14efb783ee6b3f61f9 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Mon, 28 Dec 2020 20:41:36 -0800 Subject: [PATCH] Avoid conflicts for backup, view, and undo dirs --- vim/.config/vim/init.d/xdg.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vim/.config/vim/init.d/xdg.vim b/vim/.config/vim/init.d/xdg.vim index a4a98df..1baf246 100644 --- a/vim/.config/vim/init.d/xdg.vim +++ b/vim/.config/vim/init.d/xdg.vim @@ -11,10 +11,10 @@ set runtimepath+=$XDG_DATA_HOME/vim set packpath^=$XDG_DATA_HOME/vim call mkdir($XDG_DATA_HOME.'/vim/spell', 'p', 0700) -set backupdir=$XDG_CACHE_HOME/vim/backup | call mkdir(&backupdir, 'p', 0700) -set directory=$XDG_CACHE_HOME/vim/swap// | call mkdir(&directory, 'p', 0700) -set undodir=$XDG_CACHE_HOME/vim/undo | call mkdir(&undodir, 'p', 0700) -set viewdir=$XDG_CACHE_HOME/vim/view | call mkdir(&viewdir, 'p', 0700) +set backupdir=$XDG_CACHE_HOME/vim/backup// | call mkdir(&backupdir, 'p', 0700) +set directory=$XDG_CACHE_HOME/vim/swap// | call mkdir(&directory, 'p', 0700) +set undodir=$XDG_CACHE_HOME/vim/undo// | call mkdir(&undodir, 'p', 0700) +set viewdir=$XDG_CACHE_HOME/vim/view// | call mkdir(&viewdir, 'p', 0700) if !has('nvim') set viminfofile=$XDG_CACHE_HOME/vim/viminfo