diff --git a/autoload/vundle.vim b/autoload/vundle.vim index b07632c..aa3e7d1 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -13,6 +13,5 @@ if !exists('g:bundles') | let g:bundles = [] | endif func! vundle#rc() let g:bundle_dir = expand('$HOME/.vim/bundle') - call filter(g:bundles, 's:rtp_rm(v:val.rtpath())') - let g:bundles = [] + call vundle#config#init() endf diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 3bdb7cb..37fee04 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -6,6 +6,11 @@ func! vundle#config#bundle(arg, ...) call s:require(bundle) endf +func! vundle#config#init() + call filter(g:bundles, 's:rtp_rm(v:val.rtpath())') + let g:bundles = [] +endf + func! s:parse_options(opts) " TODO: improve this if len(a:opts) != 1 | return {} | endif