From d3f056026acdd8fcd07002b46e4bd940b8e5a043 Mon Sep 17 00:00:00 2001 From: gmarik Date: Tue, 7 Dec 2010 20:20:20 -0600 Subject: [PATCH] adding to runtimepath isn't bundle's responsibility --- autoload/vundle.vim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index f73d6d4..20d88fc 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -19,7 +19,7 @@ func! vundle#add_bundle(arg, ...) call add(g:bundles, bundle) call extend(bundle, s:parse_name(a:arg)) call extend(bundle, copy(s:bundle)) - call bundle.require() + call s:rtp_add(bundle.rtpath()) endf func! vundle#install_bundles() @@ -32,6 +32,13 @@ func! vundle#helptags() for bundle in g:bundles | call bundle.helptags() | endfor endf +func! s:rtp_add(dir) + exec 'set rtp^='.a:dir + let after = expand(a:dir.'/after') | if isdirectory(after) + exec 'set rtp+='.after + endif +endf + func! s:parse_options(opts) " TODO: improve this if len(a:opts) != 1 | return {} | endif @@ -65,13 +72,6 @@ func! s:bundle.rtpath() return has_key(self, 'rtp') ? join([self.path(), self.rtp], '/') : self.path() endf -func! s:bundle.require() - let dir = self.rtpath() - exec 'set rtp^='.dir - let after = expand(dir.'/after') | if isdirectory(after) - exec 'set rtp+='.after - endif -endf func! s:bundle.helptags() let dir = self.rtpath()