diff --git a/autoload/SpaceVim/layers/tools.vim b/autoload/SpaceVim/layers/tools.vim index 3d4612a88..b4fd5d425 100644 --- a/autoload/SpaceVim/layers/tools.vim +++ b/autoload/SpaceVim/layers/tools.vim @@ -55,7 +55,9 @@ function! SpaceVim#layers#tools#config() abort function! OpenOrCloseNERDTree() abort exec 'normal! A' endfunction - noremap :NERDTreeToggle + if g:spacevim_filemanager ==# 'nerdtree' + noremap :NERDTreeToggle + endif let g:NERDTreeWinPos='right' let g:NERDTreeWinSize=31 let g:NERDTreeChDirMode=1 diff --git a/autoload/SpaceVim/layers/unite.vim b/autoload/SpaceVim/layers/unite.vim index 683da392e..b2d7f3963 100644 --- a/autoload/SpaceVim/layers/unite.vim +++ b/autoload/SpaceVim/layers/unite.vim @@ -50,7 +50,6 @@ function! SpaceVim#layers#unite#plugins() abort \ ['voi/unite-ctags'], \ ['Shougo/unite-session'], \ ['osyo-manga/unite-quickfix'], - \ ['Shougo/vimfiler.vim',{'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}], \ ['ujihisa/unite-colorscheme'], \ ['mattn/unite-gist'], \ ['tacroe/unite-mark'], @@ -71,6 +70,10 @@ function! SpaceVim#layers#unite#plugins() abort call add(plugins, ['mopp/googlesuggest-source.vim']) call add(plugins, ['mattn/googlesuggest-complete-vim']) endif + + if g:spacevim_filemanager ==# 'vimfiler' + call add(plugins, ['Shougo/vimfiler.vim',{'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}]) + endif return plugins endfunction