From dd5b44db2c61b7ed21254e207be86323935ae441 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 19 Mar 2011 15:18:56 -0500 Subject: [PATCH] require bunch --- autoload/vundle/config.vim | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 32bef42..fc37e31 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -12,13 +12,15 @@ func! vundle#config#init() let g:bundles = [] endf -func! vundle#config#require(bundle) - call s:rtp_add(a:bundle.rtpath()) - call s:rtp_add(g:bundle_dir) - " TODO: it has to be relative rtpath, not bundle.name - exec 'runtime! '.a:bundle.name.'/plugin/*.vim' - exec 'runtime! '.a:bundle.name.'/after/*.vim' - call s:rtp_rm(g:bundle_dir) +func! vundle#config#require(bundles) + for b in a:bundles + call s:rtp_add(b.rtpath()) + call s:rtp_add(g:bundle_dir) + " TODO: it has to be relative rtpath, not bundle.name + exec 'runtime! '.b.name.'/plugin/*.vim' + exec 'runtime! '.b.name.'/after/*.vim' + call s:rtp_rm(g:bundle_dir) + endfor endf func! vundle#config#init_bundle(name, opts)