From 5c51921aef241fb564ceabee7814691223bb775a Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 12 Nov 2014 05:03:49 -0500 Subject: [PATCH] Use ~/.vim/swap to store swap files rather than the current directory --- vim/config/settings.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vim/config/settings.vim b/vim/config/settings.vim index 244189f..6e18ab5 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -85,6 +85,10 @@ set timeout timeoutlen=500 "how long before timing out for mappings set ttimeout ttimeoutlen=100 "how long before timing out for terminal key codes + "create ~/.vim/swap if necessary, then use as default swap file location + if !isdirectory($HOME.'/.vim/swap')|call mkdir($HOME.'/.vim/swap','p')|endif + set directory=$HOME/.vim/swap,.,/var/tmp,/tmp + "FUNCTIONS: {{{ if has('autocmd') "enable the auto-creation of missing folders in a save path