From fcf77f5101f3e589ce006c40ad3a0432735a05cf Mon Sep 17 00:00:00 2001 From: Lucas Parry Date: Sun, 12 Jun 2011 17:11:26 +1000 Subject: [PATCH] Add option to call infect on non-standard paths Tweak pathogen#infect to take an optional source path to load plugins from, instead of the standard 'bundle' directory. --- autoload/pathogen.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/pathogen.vim b/autoload/pathogen.vim index 993110a..76d4c99 100644 --- a/autoload/pathogen.vim +++ b/autoload/pathogen.vim @@ -16,8 +16,9 @@ endif let g:loaded_pathogen = 1 " Point of entry for basic default usage. -function! pathogen#infect() abort " {{{1 - call pathogen#runtime_append_all_bundles() +function! pathogen#infect(...) abort " {{{1 + let source_path = a:0 ? a:1 : 'bundle' + call pathogen#runtime_append_all_bundles(source_path) call pathogen#cycle_filetype() endfunction " }}}1