2016-12-26 21:11:19 +08:00
|
|
|
scriptencoding utf-8
|
2017-01-06 19:13:33 +08:00
|
|
|
exe 'set wildignore+=' . g:spacevim_wildignore
|
2016-12-26 21:11:19 +08:00
|
|
|
" shell
|
|
|
|
if has('filterpipe')
|
|
|
|
set noshelltemp
|
|
|
|
endif
|
2017-05-31 22:17:10 +08:00
|
|
|
if g:spacevim_enable_guicolors == 1
|
|
|
|
if !has('nvim') && has('patch-7.4.1770')
|
|
|
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
|
|
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
|
|
|
endif
|
|
|
|
if exists('+termguicolors')
|
|
|
|
set termguicolors
|
|
|
|
elseif exists('+guicolors')
|
|
|
|
set guicolors
|
|
|
|
endif
|
|
|
|
endif
|
2017-01-06 19:13:33 +08:00
|
|
|
if count(g:spacevim_plugin_groups, 'colorscheme') && g:spacevim_colorscheme !=# '' "{{{
|
2016-12-26 21:11:19 +08:00
|
|
|
try
|
2017-04-30 15:35:48 +08:00
|
|
|
exec 'set background=' . g:spacevim_colorscheme_bg
|
2017-05-22 20:16:20 +08:00
|
|
|
exec 'colorscheme ' . g:spacevim_colorscheme
|
2016-12-26 21:11:19 +08:00
|
|
|
catch
|
2016-12-31 19:24:02 +08:00
|
|
|
exec 'colorscheme '. g:spacevim_colorscheme_default
|
2016-12-26 21:11:19 +08:00
|
|
|
endtry
|
2017-01-11 20:47:23 +08:00
|
|
|
else
|
|
|
|
exec 'colorscheme '. g:spacevim_colorscheme_default
|
2016-12-26 21:11:19 +08:00
|
|
|
endif
|
2017-01-06 19:13:33 +08:00
|
|
|
if g:spacevim_hiddenfileinfo == 1 && has('patch-7.4.1570')
|
2017-07-09 15:34:14 +08:00
|
|
|
set shortmess+=F
|
2016-12-26 21:11:19 +08:00
|
|
|
endif
|
2017-01-07 16:49:21 +08:00
|
|
|
if !empty(g:spacevim_guifont)
|
|
|
|
exe 'set guifont=' . g:spacevim_guifont
|
|
|
|
endif
|