Skip to content

Instantly share code, notes, and snippets.

@orivee
Forked from romainl/gist:9970697
Created August 4, 2018 10:02
Show Gist options
  • Select an option

  • Save orivee/f55556aa80f4758812c452d858915b7d to your computer and use it in GitHub Desktop.

Select an option

Save orivee/f55556aa80f4758812c452d858915b7d to your computer and use it in GitHub Desktop.
How to use Tim Pope's Pathogen

How to use Tim Pope's Pathogen.

I'll assume you are on Linux or Mac OSX. For Windows, replace ~/.vim/ with $HOME/vimfiles/.

Prepare your environment.

If they don't exist already, create these two directories:

~/.vim/autoload/
~/.vim/bundle/

Get Pathogen.

Save https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim to

~/.vim/autoload/pathogen.vim

Configure Pathogen.

Put these lines at the top of your vimrc:

execute pathogen#infect()
execute pathogen#helptags()

filetype plugin indent on
syntax on

The two last lines have nothing to do with pathogen but, if you have them in your ~/.vimrc, be sure to put them after the pathogen lines. If you don't have those lines, well… add them! What good is Vim without syntax highlighting and filetype detection?

Install a plugin.

Manually:

Unzip delimitMate-master.zip in ~/.vim/bundle/, you should get:

~/.vim/bundle/delimitMate-master/autoload/...
~/.vim/bundle/delimitMate-master/doc/...
~/.vim/bundle/delimitMate-master/plugin/...
~/.vim/bundle/delimitMate-master/...

Gitly:

$ cd ~/.vim/bundle
$ git clone https://github.com/Raimondi/delimitMate.git

Update a plugin.

Manually:

Same as installation process.

Gitly:

$ cd ~/.vim/bundle/delimitMate
$ git pull

Remove a plugin.

Simply remove its directory from ~/.vim/bundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment