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

INSTALLING 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()
syntax on
filetype plugin indent on

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 git@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