gmarik/vundle — pull request #97 by bronson (2011-10-13 23:48:46+00:00)
Title: initial stab at BundleCommand

This almost works... All BundleCommands run every time Vim starts, not just after bundles have been installed. Running every time Vim starts would be far too slow.

Any idea how to solve this?

Originally I thought BundleCommand should be associated with the previous Bundle and only run if the bundle it's associated with is updated. So, for example...

Bundle 'git://git.wincent.com/command-t.git'
# ensure we compile with system Ruby
BundleCommand 'cd command-t && if which rvm >/dev/null 2>&1; then rvm system exec rake make; else rake make; fi'

When command-t gets updated, the BundleCommand would be run.

Now I'm thinking that's too complex, and all BundleCommands should be run after any plugin(s) are installed. Easier to code, easier to understand.