1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:20:05 +08:00

Fix E254 when spacevim startup

This issue only happened in vim, and works well in neovim.

```
Error detected while processing /home/wsdjeg/SpaceVim/SpaceVim/config/general.vim:
line   29:
E254: Cannot allocate color 246
```
This commit is contained in:
wsdjeg 2017-05-31 22:17:10 +08:00
parent cefdc6f9c4
commit 17a6a5c24f

View File

@ -4,6 +4,17 @@ exe 'set wildignore+=' . g:spacevim_wildignore
if has('filterpipe')
set noshelltemp
endif
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
if count(g:spacevim_plugin_groups, 'colorscheme') && g:spacevim_colorscheme !=# '' "{{{
try
exec 'set background=' . g:spacevim_colorscheme_bg
@ -20,14 +31,3 @@ endif
if !empty(g:spacevim_guifont)
exe 'set guifont=' . g:spacevim_guifont
endif
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