From 2c57c5f4c5446865db532064c763a6a67db2d0bb Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 10 Jun 2013 22:55:11 -0400 Subject: [PATCH] Stop setting temporary directories * Closes #50 --- plugin/sensible.vim | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 137b5c4..43cd218 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -72,22 +72,6 @@ if !empty(&viminfo) set viminfo^=! 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. if &t_Co == 8 && $TERM !~# '^linux' set t_Co=16