From 5ce63c7de1613863e0b2ee9fac601ef02066699e Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 12 Mar 2011 01:54:41 -0600 Subject: [PATCH] support short github uris - ie, like this Bundle 'gmarik/vundle' --- autoload/vundle/config.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index ad96d91..32bef42 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -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\+'