From a736eb551c915a2f68bd49a239b6164f28cbc78b Mon Sep 17 00:00:00 2001 From: Rykka Date: Tue, 5 Jun 2012 16:29:50 +0800 Subject: [PATCH] rmv &rtp after runtime it. --- autoload/vundle/config.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 69c19fa..8606497 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -20,6 +20,10 @@ func! vundle#config#require(bundles) abort exec 'runtime! '.b.name.'/plugin/*.vim' exec 'runtime! '.b.name.'/after/*.vim' call s:rtp_rm(g:bundle_dir) + if g:vundle_local!=0 + exec 'runtime! '.b.name.'/autoload/*.vim' + call s:rtp_rm(b.rtpath) + endif endfor endf