Use the global bundles instead of reinitializing

This commit is contained in:
Techlive Zheng 2012-08-06 11:20:14 +08:00
parent 8e9b933ed4
commit 2b0ae7215f

View File

@ -100,7 +100,8 @@ endf
func! vundle#installer#install(bang, name) abort func! vundle#installer#install(bang, name) abort
if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif
let b = vundle#config#init_bundle(a:name, {}) let n = substitute(a:name,"['".'"]\+','','g')
let b = filter(copy(g:bundles), 'v:val.name_spec == n')[0]
return s:sync(a:bang, b) return s:sync(a:bang, b)
endf endf