mirror of
https://github.com/tpope/vim-pathogen.git
synced 2026-05-28 00:21:02 +02:00
Treat infect("~/foo/") as infect("/foo/{}")
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user