I'll assume you are on Linux or Mac OSX. For Windows, replace ~/.vim/ with $HOME\vimfiles\ and forward slashes with backward slashes.
If they don't exist already, create these two directories:
~/.vim/autoload/
~/.vim/bundle/
Save https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim to
~/.vim/autoload/pathogen.vim
Put these lines at the top of your vimrc:
execute pathogen#infect()
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 line. If you don't have those lines, well… add them! What good is Vim without syntax highlighting and filetype detection?
We are going to install delimitMate. Once it is installed 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/...
Unzip delimitMate-master.zip in ~/.vim/bundle/delimitMate-master/.
$ cd ~/.vim/bundle
$ git clone https://github.com/Raimondi/delimitMate.git
$ cd ~/.vim
$ git submodule init
$ git submodule add https://github.com/Raimondi/delimitMate.git bundle/delimitMate
It is recommended to use the :Helptags command, provided by Pathogen, to make the plugin's documentation available.
Same as installation process.
$ cd ~/.vim/bundle/delimitMate-master
$ git pull
Use :Helptags to update the index of the plugin's documentation.
Simply remove its directory from ~/.vim/bundle.
$ cd ~/.vim
$ git submodule deinit -f bundle/delimitMate
$ git rm -rf bundle/delimitMate