Use ~/.vim/swap to store swap files rather than the current directory

This commit is contained in:
Kevin MacMartin 2014-11-12 05:03:49 -05:00
parent 65a0cbda1c
commit 5c51921aef

View file

@ -85,6 +85,10 @@
set timeout timeoutlen=500 "how long before timing out for mappings set timeout timeoutlen=500 "how long before timing out for mappings
set ttimeout ttimeoutlen=100 "how long before timing out for terminal key codes 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: {{{ "FUNCTIONS: {{{
if has('autocmd') if has('autocmd')
"enable the auto-creation of missing folders in a save path "enable the auto-creation of missing folders in a save path