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.
This commit is contained in:
Lucas Parry
2011-06-12 17:11:26 +10:00
committed by Tim Pope
parent 50650f2531
commit fcf77f5101
+3 -2
View File
@@ -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