diff --git a/ginit.vim b/ginit.vim index 8c7ed7f1e..5cb72c117 100644 --- a/ginit.vim +++ b/ginit.vim @@ -7,10 +7,10 @@ "============================================================================= if exists('g:GuiLoaded') - if empty(g:spacevim_guifont) - exe 'Guifont! SauceCodePro Nerd Font Mono:h11:cANSI:qDRAFT' - else + if exists('g:spacevim_guifont') && !empty(g:spacevim_guifont) exe 'Guifont! ' . g:spacevim_guifont + else + exe 'Guifont! SauceCodePro Nerd Font Mono:h11:cANSI:qDRAFT' endif " As using neovim-qt by default @@ -23,16 +23,6 @@ if exists('g:GuiLoaded') if exists(':GuiTabline') == 2 GuiTabline 0 endif - if g:spacevim_colorscheme !=# '' "{{{ - try - exec 'set background=' . g:spacevim_colorscheme_bg - exec 'colorscheme ' . g:spacevim_colorscheme - catch - exec 'colorscheme '. g:spacevim_colorscheme_default - endtry - else - exec 'colorscheme '. g:spacevim_colorscheme_default - endif endif " vim:set et sw=2: