From cb3f3d7f0a3cc675cf4d1f708c17e3fb383579bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malthe=20J=C3=B8rgensen?= Date: Tue, 5 Mar 2013 20:54:01 +0100 Subject: [PATCH] Re-add support for paths starting with '~' --- 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 55c7d7d..2f9823a 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -55,7 +55,8 @@ func! s:parse_name(arg) elseif arg =~? '^\s*\(git@\|git://\)\S\+' \ || arg =~? '\(file\|https\?\)://' \ || arg =~? '\.git\s*$' - let uri = arg + \ || arg =~? '\V~' + let uri = substitute(arg, '\V~', expand('~'), '') let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1] else let name = arg