Browse Source

support short github uris

- ie, like this
Bundle 'gmarik/vundle'
pull/10/head
gmarik 15 years ago
parent
commit
5ce63c7de1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      autoload/vundle/config.vim

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

@ -39,7 +39,8 @@ endf
func! s:parse_name(arg)
let arg = a:arg
if arg =~ '^\s*\(gh\|github\):\S\+'
if arg =~ '^\s*\(gh\|github\):\S\+'
\ || arg =~ '^\w\+/[^/]\+$'
let uri = 'https://github.com/'.split(arg, ':')[-1]
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
elseif arg =~ '^\s*\(git@\|git://\)\S\+'


Loading…
Cancel
Save