Skip to content
Browse files

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.
  • Loading branch information...
1 parent 50650f2 commit 7fd7a44b15ade69b2706017937a165f6224e0d4d @lparry committed Jun 12, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 autoload/pathogen.vim
View
5 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

0 comments on commit 7fd7a44

Please sign in to comment.
Something went wrong with that request. Please try again.