From 303fdad655357e3c6a51b8f15ef4c3fc39d0c367 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 16 Feb 2017 21:46:37 +0800 Subject: [PATCH] Let tagbar use g:spacevim_sidebar_width --- autoload/SpaceVim.vim | 2 +- config/plugins/tagbar.vim | 2 +- config/plugins/vimfiler.vim | 2 +- doc/SpaceVim.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 76454321f..84e852046 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -96,7 +96,7 @@ let g:spacevim_guifont = '' 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. +" used by tagbar, vimfiler. default it is 30. let g:spacevim_sidebar_width = 30 let g:spacevim_enable_neocomplcache = 0 "" diff --git a/config/plugins/tagbar.vim b/config/plugins/tagbar.vim index 2a69e2c12..badc79e89 100644 --- a/config/plugins/tagbar.vim +++ b/config/plugins/tagbar.vim @@ -1,4 +1,4 @@ -let g:tagbar_width=30 +let g:tagbar_width = g:spacevim_sidebar_width let g:tagbar_left = 1 diff --git a/config/plugins/vimfiler.vim b/config/plugins/vimfiler.vim index 6e76cf23a..6163c40c7 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' : get(g:, 'spacevim_sidebar_width', 30) , + \ 'winwidth' : g:spacevim_sidebar_width, \ 'winminwidth' : 30, \ 'toggle' : 1, \ 'columns' : 'type', diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 7bf6dfe2d..fea905a6c 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -126,7 +126,7 @@ Disable/Enable YouCompleteMe, by default it is disabled. To enable it: *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. +by tagbar, vimfiler. default it is 30. *g:spacevim_enable_cursorline* Enable cursorline