From e0743e1e57c80ed130ea3600ed7acdb37c8e4753 Mon Sep 17 00:00:00 2001 From: Rainux Luo Date: Fri, 21 Oct 2011 21:26:19 +0800 Subject: [PATCH] Simplify logic for require newly installed bundles --- autoload/vundle/config.vim | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 2777128..86f707b 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -15,12 +15,10 @@ endf func! vundle#config#require(bundles) abort 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 + " It's OK to do this since every plugin prevent itself be loaded twice + runtime! plugin/*.vim + runtime! after/*.vim endf func! vundle#config#init_bundle(name, opts)