Browse Source

use specified name with :BundleInstall

- otherwise it defautls to vim-scripts repos
- closes #69
- TODO: pass options aswell
pull/71/head
gmarik 15 years ago
parent
commit
e3623da0f9
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      autoload/vundle/config.vim
  2. +1
    -1
      autoload/vundle/installer.vim

+ 2
- 1
autoload/vundle/config.vim View File

@ -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()


+ 1
- 1
autoload/vundle/installer.vim View File

@ -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…
Cancel
Save