From e3623da0f9e8c5a28a2da0d12b1ebe48d45e839d Mon Sep 17 00:00:00 2001 From: gmarik Date: Wed, 3 Aug 2011 17:17:20 -0500 Subject: [PATCH] use specified name with :BundleInstall - otherwise it defautls to vim-scripts repos - closes #69 - TODO: pass options aswell --- autoload/vundle/config.vim | 3 ++- autoload/vundle/installer.vim | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 0e32183..2f28648 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -40,6 +40,7 @@ endf func! s:parse_name(arg) let arg = a:arg + if arg =~? '^\s*\(gh\|github\):\S\+' \ || arg =~? '^[a-z0-9][a-z0-9-]*/[^/]\+$' let uri = 'https://github.com/'.split(arg, ':')[-1] @@ -53,7 +54,7 @@ func! s:parse_name(arg) let name = arg let uri = 'https://github.com/vim-scripts/'.name.'.git' endif - return {'name': name, 'uri': uri } + return {'name': name, 'uri': uri, 'name_spec': arg } endf func! s:rtp_rm_a() diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 62b1b1f..c2ec4f1 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -3,7 +3,7 @@ func! vundle#installer#new(bang, ...) abort \ s:reload_bundles() : \ map(copy(a:000), 'vundle#config#init_bundle(v:val, {})') - let names = map(copy(bundles), 'v:val.name') + let names = map(copy(bundles), 'v:val.name_spec') call s:display(['" Installing'], names) exec ":1"