mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:20:06 +08:00
Fix: enable clean startup in VimR (#3547)
This is a follow-on to #1651; I found that I was still seeing the error message mentioned in that PR under VimR 0.32.0. Fortunately VimR has a specific feature `gui_vimr` to test against; recent builds of VimR do set `gui_running`, so the fix from that previous PR no longer works.
This commit is contained in:
parent
f5ac4fcdec
commit
276d761ae2
@ -21,14 +21,22 @@ function! SpaceVim#default#options() abort
|
|||||||
set guioptions-=b " Hide bottom scrollbar
|
set guioptions-=b " Hide bottom scrollbar
|
||||||
set showtabline=0 " Hide tabline
|
set showtabline=0 " Hide tabline
|
||||||
set guioptions-=e " Hide tab
|
set guioptions-=e " Hide tab
|
||||||
if s:SYSTEM.isWindows
|
try
|
||||||
" please install the font in 'Dotfiles\font'
|
if s:SYSTEM.isWindows
|
||||||
set guifont=DejaVu_Sans_Mono_for_Powerline:h11:cANSI:qDRAFT
|
" please install the font in 'Dotfiles\font'
|
||||||
elseif s:SYSTEM.isOSX
|
set guifont=DejaVu_Sans_Mono_for_Powerline:h11:cANSI:qDRAFT
|
||||||
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h11
|
elseif s:SYSTEM.isOSX
|
||||||
else
|
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h11
|
||||||
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 11
|
else
|
||||||
endif
|
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 11
|
||||||
|
endif
|
||||||
|
catch /^Vim\%((\a\+)\)\=:E518/
|
||||||
|
if has('gui_vimr')
|
||||||
|
" VimR has disabled support for guifont
|
||||||
|
else
|
||||||
|
throw v:exception
|
||||||
|
endif
|
||||||
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" indent use backspace delete indent, eol use backspace delete line at
|
" indent use backspace delete indent, eol use backspace delete line at
|
||||||
|
@ -29,5 +29,9 @@ if g:spacevim_hiddenfileinfo == 1 && has('patch-7.4.1570')
|
|||||||
set shortmess+=F
|
set shortmess+=F
|
||||||
endif
|
endif
|
||||||
if has('gui_running') && !empty(g:spacevim_guifont)
|
if has('gui_running') && !empty(g:spacevim_guifont)
|
||||||
let &guifont = g:spacevim_guifont
|
if has('gui_vimr')
|
||||||
|
" VimR has removed support for guifont
|
||||||
|
else
|
||||||
|
let &guifont = g:spacevim_guifont
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user