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