mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-11 12:33:47 -05:00
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user