From 749f7e0d6748c73ec7c0f1bea07fd0426e58f089 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sun, 31 Oct 2010 02:13:20 -0500 Subject: [PATCH] Minor improvements --- autoload/vundle.vim | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 0d43b2a..0311895 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -17,7 +17,7 @@ let g:bundles = [] func! vundle#add_bundle(uri, opts) let bundle = a:opts - call extend(bundle, { 'uri': a:uri }) + let bundle.uri = a:uri let bundle.name = split(a:uri,'\/')[-1] " potentially break on Windows let bundle.path = expand(g:bundle_dir.''.bundle.name) let bundle.rtpath = has_key(bundle, 'rtp') ? join([bundle.path, bundle.rtp], '/') : bundle.path @@ -37,10 +37,9 @@ func! vundle#rc() endf func! vundle#require_bundle(bundle) - let bundle = a:bundle - let rtp = filter(split(&rtp, ','),'v:val !~# bundle.path') + let rtp = filter(split(&rtp, ','),'v:val !~# a:bundle.path') let after = [] | let before = [] - let path = s:RuntimePath(bundle) + let path = s:RuntimePath(a:bundle) let before += path[0] | let after += path[1] let &rtp = join(before + rtp + after, ',') endf