Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Pathogen

Backup VIM

mv ~/.vimrc ~/.vimrc.bak
mv ~/.vim/ ~/.vimbak/

Create new VIM directory

mkdir -p ~/.vim/autoload
mkdir -p ~/.vim/bundle
cd ~/.vim/autoload
curl https://github.com/tpope/vim-pathogen/raw/master/autoload/pathogen.vim > pathogen.vim

Add to your ~/.vimrc

" Pathogen
filetype off " Pathogen needs to run before plugin indent on
call pathogen#runtime_append_all_bundles()
call pathogen#helptags() " generate helptags for everything in 'runtimepath'
filetype plugin indent on

Install NERDTREE Plugin

cd ~/.vim/bundle
git clone git://github.com/scrooloose/nerdtree.git

Remove NERDTREE plugin if not needed:

rm -Rf ~/.vim/bundle/nerdtree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment