Pathogen, baby!

Posted by Derek Wyatt on October 12, 2010

So there’s been some scuttlebutt on the Twitters recently regarding this “Pathogen” script for Vim and I decided to have a look. In a word? “Sweet”. In a few words? Tim Pope is the absolute man.

This is an extremely simple and elegant script. All it does is manipulate the ‘runtimepath’ but it has a nice focus on allowing you to componentize your Vim extensions into their own, private ‘runtimepath’ tree segments. So what? So what?!? Now you can easily upgrade your extensions by just deleting the old tree, downloading the package and exploding it in place.

This would have saved my ass when xptemplate went through a revision that deleted files, and I didn’t notice. Having unwanted, autoloaded files in place was not a good thing.

And you can also just toss git suppositories straight into this as well - perfect updating.

Check out Tammer Saleh’s post called The Modern Vim Config with Pathogen for a concise description on how to get it into your vimrc.