From 90f489a341c038415046dd64e2c694dd2ceb93df Mon Sep 17 00:00:00 2001 From: RedLotus Date: Wed, 6 Jun 2018 10:19:28 +0800 Subject: [PATCH] fix undefined variable for g:_spacevim_config_path --- autoload/SpaceVim/commands.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/commands.vim b/autoload/SpaceVim/commands.vim index c4d9d73b7..e50a45dac 100644 --- a/autoload/SpaceVim/commands.vim +++ b/autoload/SpaceVim/commands.vim @@ -87,7 +87,8 @@ function! SpaceVim#commands#config(...) abort exe 'tabnew' g:_spacevim_config_path endif else - if g:spacevim_force_global_config + if g:spacevim_force_global_config || + \ get(g:, '_spacevim_config_path', '0') ==# '0' exe 'tabnew' g:_spacevim_global_config_path else exe 'tabnew' g:_spacevim_config_path