use specified name with :BundleInstall
- otherwise it defautls to vim-scripts repos - closes #69 - TODO: pass options aswell
This commit is contained in:
parent
f8e887357e
commit
e3623da0f9
@ -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()
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user