diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 723c7f48f..76454321f 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -94,6 +94,10 @@ let g:spacevim_guifont = '' " let g:spacevim_enable_ycm = 1 " < let g:spacevim_enable_ycm = 0 +"" +" Set the width of value of spacevim sidebar width, and this value will be +" used by tagbar, vimfiler, mundo etc. default it is 30. +let g:spacevim_sidebar_width = 30 let g:spacevim_enable_neocomplcache = 0 "" " Enable cursorline diff --git a/config/plugins/vimfiler.vim b/config/plugins/vimfiler.vim index 476f4566b..6e76cf23a 100644 --- a/config/plugins/vimfiler.vim +++ b/config/plugins/vimfiler.vim @@ -26,7 +26,7 @@ endif call vimfiler#custom#profile('default', 'context', { \ 'explorer' : 1, - \ 'winwidth' : 30, + \ 'winwidth' : get(g:, 'spacevim_sidebar_width', 30) , \ 'winminwidth' : 30, \ 'toggle' : 1, \ 'columns' : 'type', diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index e19dd1ca0..7bf6dfe2d 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -124,6 +124,10 @@ Disable/Enable YouCompleteMe, by default it is disabled. To enable it: let g:spacevim_enable_ycm = 1 < + *g:spacevim_sidebar_width* +Set the width of value of spacevim sidebar width, and this value will be used +by tagbar, vimfiler, mundo etc. default it is 30. + *g:spacevim_enable_cursorline* Enable cursorline >