Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 7fd7a44b15ade69b2706017937a165f6224e0d4d 1 parent 50650f2
@lparry authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.