Skip to content
Browse files

Add pathogen#infect() as primary entry point for basic setup

  • Loading branch information...
1 parent af56595 commit b1471255528d024e6f7a0103560beb70659b05b1 Seth Milliken committed May 13, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 autoload/pathogen.vim
View
14 autoload/pathogen.vim
@@ -4,13 +4,27 @@
" Install in ~/.vim/autoload (or ~\vimfiles\autoload).
"
+" For management of individually installed plugins in ~/.vim/bundle
+" (or $HOME/vimfiles/bundle), adding 'call pathogen#infect()' to your
+" .vimrc prior to 'fileype plugin indent on' is the only other setup necessary.
+"
" API is documented below.
if exists("g:loaded_pathogen") || &cp
finish
endif
let g:loaded_pathogen = 1
+" Point of entry for basic default usage.
+function! pathogen#infect() abort " {{{1
+ let filetype_was_on = exists('g:did_load_filetypes')
+ filetype off
+ call pathogen#runtime_append_all_bundles()
+ if filetype_was_on
+ filetype on
+ endif
+endfunction " }}}1
+
" Split a path into a list.
function! pathogen#split(path) abort " {{{1
if type(a:path) == type([]) | return a:path | endif

0 comments on commit b147125

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