From 034d5d6eafe5552d05e567bcd55d58938df56bfd Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Mon, 28 Dec 2020 14:34:13 -0800 Subject: [PATCH] Fix vim swap filename setting to avoid name collisions --- vim/.config/vim/init.d/xdg.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/.config/vim/init.d/xdg.vim b/vim/.config/vim/init.d/xdg.vim index 1d56667..a4a98df 100644 --- a/vim/.config/vim/init.d/xdg.vim +++ b/vim/.config/vim/init.d/xdg.vim @@ -12,7 +12,7 @@ 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 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)