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