From 7c9a90498b93c1b5875ff39383c49874a29aa64e Mon Sep 17 00:00:00 2001 From: Nikolaus Sucher Date: Fri, 14 Sep 2018 21:21:38 -0400 Subject: [PATCH] Add the option for setting filetree position (#2015) --- autoload/SpaceVim.vim | 2 ++ config/plugins/nerdtree.vim | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index 21f9a37e0..a425516c2 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -481,6 +481,8 @@ let g:spacevim_simple_mode = 0 "" " The default file manager of SpaceVim. Default is 'vimfiler'. let g:spacevim_filemanager = 'vimfiler' + +let g:spacevim_sidebar_direction = '' "" " The default plugin manager of SpaceVim. " if has patch 7.4.2071, the default value is dein. Otherwise it is neobundle. diff --git a/config/plugins/nerdtree.vim b/config/plugins/nerdtree.vim index 7b31df73b..2966953bc 100644 --- a/config/plugins/nerdtree.vim +++ b/config/plugins/nerdtree.vim @@ -1,6 +1,5 @@ let s:VCOP = SpaceVim#api#import('vim#compatible') - -let g:NERDTreeWinPos=get(g:,'NERDTreeWinPos','right') +let g:NERDTreeWinPos=get(g:,'NERDTreeWinPos',spacevim_sidebar_direction) let g:NERDTreeWinSize=get(g:,'NERDTreeWinSize',31) let g:NERDTreeChDirMode=get(g:,'NERDTreeChDirMode',1) augroup nerdtree_zvim