Provide a home for transient files

This commit is contained in:
Tim Pope
2013-01-06 13:29:17 -05:00
parent 8314c676b6
commit 8207d1cd69
2 changed files with 14 additions and 0 deletions

View File

@@ -47,6 +47,17 @@ set fileformats=unix,dos,mac
set viminfo+=!
if isdirectory(expand('~/.cache/vim'))
if &directory =~# '^\.,'
set directory^=~/.cache/vim/swap//
endif
if &backupdir =~# '^\.,'
set backupdir^=~/.cache/vim/backup//
endif
if exists('+undodir') && &undodir =~# '^\.,'
set undodir^=~/.cache/vim/undo//
endif
endif
if exists('+undofile')
set undofile
endif