diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 38a2436..ea20a66 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -100,7 +100,15 @@ endf func! vundle#installer#install(bang, name) abort if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif - let b = vundle#config#init_bundle(a:name, {}) + "let b = vundle#config#init_bundle(a:name, {}) + "we've already initialized all these bundles. + "we just need to find the one we that corresponds to a:name + for bb in g:bundles + if ( bb.name_spec == substitute(a:name,"['".'"]\+','','g') ) + let b = bb + break + endif + endfor return s:sync(a:bang, b) endf