With pathogen.vim you can install plugins and runtime files for vim in a flash. It will be as simple as downloading them in the ~/.vim/bundle directory. Create directory tree:

mkdir -p ~/.vim/autoload ~/.vim/bundle

Download pathogen.vim:

curl -Sso ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim

Edit your ~/.vimrc to add these lines:

" Enable pathogen
execute pathogen#infect()

" OPTIONAL: You may also wish to have Vim jump to the last position when reopening a file
if has("autocmd")
  au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
    \| exe "normal! g'\"" | endif

From now on, when you wish to install new plugins, just jump to ~/.vim/bundle and extract (or git clone) them here. Example usage: Let’s install vim-sensible plugin: “a universal set of defaults that (hopefully) everyone can agree on”

cd ~/.vim/bundle
git clone git://github.com/tpope/vim-sensible.git

That’s it! You may want to visit the projects’ page at GitHub:



vim.pathogen on official vim website: http://www.vim.org/scripts/script.php?script_id=2332