From dd413813f2a8408cfccd82ca1f7fbfa9f5a80ac6 Mon Sep 17 00:00:00 2001 From: zhujinxuan Date: Sun, 22 Apr 2018 17:29:23 -0400 Subject: [PATCH 1/2] Remove unknown option guifont in VimR --- config/general.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/general.vim b/config/general.vim index a9240bf0b..8a25434e2 100644 --- a/config/general.vim +++ b/config/general.vim @@ -28,6 +28,8 @@ endif if g:spacevim_hiddenfileinfo == 1 && has('patch-7.4.1570') set shortmess+=F endif -if !empty(g:spacevim_guifont) - let &guifont = g:spacevim_guifont +if has('gui_running') + if !empty(g:spacevim_guifont) + let &guifont = g:spacevim_guifont + endif endif From a180f43af0cfc4e490b18e8dc8f53dc3df6ba9f1 Mon Sep 17 00:00:00 2001 From: zhujinxuan Date: Sun, 22 Apr 2018 23:29:50 -0400 Subject: [PATCH 2/2] shorten if --- config/general.vim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/config/general.vim b/config/general.vim index 8a25434e2..cd1f82a9b 100644 --- a/config/general.vim +++ b/config/general.vim @@ -28,8 +28,6 @@ endif if g:spacevim_hiddenfileinfo == 1 && has('patch-7.4.1570') set shortmess+=F endif -if has('gui_running') - if !empty(g:spacevim_guifont) - let &guifont = g:spacevim_guifont - endif +if has('gui_running') && !empty(g:spacevim_guifont) + let &guifont = g:spacevim_guifont endif