From d820c25dc895afb0b2d6b241081fab67a9604886 Mon Sep 17 00:00:00 2001 From: "C.D. Clark III" Date: Thu, 21 Jun 2012 23:17:49 -0500 Subject: [PATCH] allow install functions to use bundle configs edited the vundle#installer#install function to lookup (and use) the configuration specified by the users Bundle commands. --- autoload/vundle/installer.vim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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