Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit b1471255528d024e6f7a0103560beb70659b05b1 1 parent af56595
Seth Milliken authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 autoload/pathogen.vim
View
14 autoload/pathogen.vim
@@ -4,6 +4,10 @@
" 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
@@ -11,6 +15,16 @@ if exists("g:loaded_pathogen") || &cp
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
Please sign in to comment.
Something went wrong with that request. Please try again.