From 40dcd3743b067069b425fe2478339d36708df345 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 13 Jan 2013 17:46:39 -0500 Subject: [PATCH] Treat infect("~/foo/") as infect("/foo/{}") --- autoload/pathogen.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/pathogen.vim b/autoload/pathogen.vim index c2f6d14..58a9749 100644 --- a/autoload/pathogen.vim +++ b/autoload/pathogen.vim @@ -25,6 +25,8 @@ function! pathogen#infect(...) abort " {{{1 let source_path = a:0 ? a:1 : 'bundle' if source_path =~# '[\\/]\%({}\|\*\)$' call pathogen#surround(source_path) + elseif source_path =~# '[\\/]$' + call pathogen#surround(source_path . '{}') elseif source_path =~# '[\\/]' if &verbose echohl WarningMsg