From b42f95c0c2181ac96c92907235805c1c1bdcd7f2 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 13 Jun 2022 07:12:29 -0400 Subject: [PATCH] DWIM for % and # in URL argument --- autoload/fugitive.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index b1994ee..df8ae7a 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1988,6 +1988,8 @@ function! s:Expand(rev, ...) abort else let file = len(expand('%')) ? rev . ':%' : '%' endif + elseif s:Slash(a:rev) =~# '^\a\a\+://' + let file = substitute(a:rev, '\\\@