Skip to content
This repository
Browse code

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

  • Loading branch information...
commit b1471255528d024e6f7a0103560beb70659b05b1 1 parent af56595
authored

Showing 1 changed file with 14 additions and 0 deletions. Show diff stats Hide diff stats

  1. 14  autoload/pathogen.vim
14  autoload/pathogen.vim
@@ -4,6 +4,10 @@
4 4
 
5 5
 " Install in ~/.vim/autoload (or ~\vimfiles\autoload).
6 6
 "
  7
+" For management of individually installed plugins in ~/.vim/bundle
  8
+" (or $HOME/vimfiles/bundle), adding 'call pathogen#infect()' to your
  9
+" .vimrc prior to 'fileype plugin indent on' is the only other setup necessary.
  10
+"
7 11
 " API is documented below.
8 12
 
9 13
 if exists("g:loaded_pathogen") || &cp
@@ -11,6 +15,16 @@ if exists("g:loaded_pathogen") || &cp
11 15
 endif
12 16
 let g:loaded_pathogen = 1
13 17
 
  18
+" Point of entry for basic default usage.
  19
+function! pathogen#infect() abort " {{{1
  20
+  let filetype_was_on = exists('g:did_load_filetypes')
  21
+  filetype off
  22
+  call pathogen#runtime_append_all_bundles()
  23
+  if filetype_was_on
  24
+    filetype on
  25
+  endif
  26
+endfunction " }}}1
  27
+
14 28
 " Split a path into a list.
15 29
 function! pathogen#split(path) abort " {{{1
16 30
   if type(a:path) == type([]) | return a:path | endif

0 notes on commit b147125

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