diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 04b72dbd0..00dd8b141 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -18,6 +18,9 @@ function! SpaceVim#init() abort let g:spacevim_enable_cursorcolumn = 0 let g:spacevim_enable_neomake = 1 "" + " set the guifont of Spacevim, default is empty. + let g:spacevim_guifont = '' + "" " Enable ycm or not, but default it is 0. let g:spacevim_enable_ycm = 0 let g:spacevim_enable_neocomplcache = 0 @@ -110,6 +113,7 @@ endfunction function! SpaceVim#default() abort call add(g:spacevim_plugin_groups, 'web') call add(g:spacevim_plugin_groups, 'lang') + call add(g:spacevim_plugin_groups, 'chat') call add(g:spacevim_plugin_groups, 'javascript') call add(g:spacevim_plugin_groups, 'ruby') call add(g:spacevim_plugin_groups, 'python') diff --git a/config/general.vim b/config/general.vim index 8af07b34a..8091b4690 100644 --- a/config/general.vim +++ b/config/general.vim @@ -13,6 +13,9 @@ if has("gui_running") else set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 11 endif + if !empty(g:spacevim_guifont) + exe 'set guifont=' . g:spacevim_guifont + endif endif " indent use backspace delete indent, eol use backspace delete line at diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 3e769fe16..21dbf939f 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -15,6 +15,9 @@ The default_indent of SpaceVim. *g:spacevim_max_column* The max column of SpaceVim + *g:spacevim_guifont* +set the guifont of Spacevim, default is empty. + *g:spacevim_enable_ycm* Enable ycm or not, but default it is 0.