From 77a53dac78c72b010e5b2b6fb84da0584a9a44cc Mon Sep 17 00:00:00 2001 From: gmarik Date: Sun, 8 May 2011 16:58:34 -0500 Subject: [PATCH] invoke BundleInstallPre before actually installing --- autoload/vundle/installer.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 3fc8fea..46fdbd6 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -14,14 +14,15 @@ func! vundle#installer#install(bang, ...) abort lcd `=bundle.path()` - call s:doautocmd('BundleInstallPre', 'vundle#bundle') - call s:doautocmd('BundleInstallPre', 'bundle#'.tolower(bundle.name)) - call s:doautocmd('BundleInstallPre', 'user#'.tolower(bundle.name)) - if a:bang || !(bundle.installed()) + call s:doautocmd('BundleInstallPre', 'vundle#bundle') + call s:doautocmd('BundleInstallPre', 'bundle#'.tolower(bundle.name)) + call s:doautocmd('BundleInstallPre', 'user#'.tolower(bundle.name)) + call s:doautocmd('BundleInstall', 'vundle#bundle') call s:doautocmd('BundleInstall', 'bundle#'.tolower(bundle.name)) call s:doautocmd('BundleInstall', 'user#'.tolower(bundle.name)) + call s:doautocmd('BundleInstallPost', 'vundle#bundle') call s:doautocmd('BundleInstallPost', 'bundle#'.tolower(bundle.name)) call s:doautocmd('BundleInstallPost', 'user#'.tolower(bundle.name))