Stop setting temporary directories

* Closes #50
This commit is contained in:
Tim Pope
2013-06-10 22:55:11 -04:00
parent 3ffe25ce1d
commit 2c57c5f4c5

View File

@@ -72,22 +72,6 @@ if !empty(&viminfo)
set viminfo^=! set viminfo^=!
endif endif
let s:dir = has('win32') ? '$APPDATA/Vim' : match(system('uname'), "Darwin") > -1 ? '~/Library/Vim' : empty($XDG_DATA_HOME) ? '~/.local/share/vim' : '$XDG_DATA_HOME/vim'
if isdirectory(expand(s:dir))
if &directory =~# '^\.,'
let &directory = expand(s:dir) . '/swap//,' . &directory
endif
if &backupdir =~# '^\.,'
let &backupdir = expand(s:dir) . '/backup//,' . &backupdir
endif
if exists('+undodir') && &undodir =~# '^\.\%(,\|$\)'
let &undodir = expand(s:dir) . '/undo//,' . &undodir
endif
endif
if exists('+undofile')
set undofile
endif
" Allow color schemes to do bright colors without forcing bold. " Allow color schemes to do bright colors without forcing bold.
if &t_Co == 8 && $TERM !~# '^linux' if &t_Co == 8 && $TERM !~# '^linux'
set t_Co=16 set t_Co=16