right now I'm cleaning my .vimrc file to make sure it is compatible with most systems.
In my status bar, I use a function that another plugin GitBranchInfoString() , GitBranchInfoString() , introduced by this plugin .
What I want to do is check if this function is installed, and only then add it to the status bar. That would be on its own line, so I just need to check it out.
What would be the easiest way to accomplish this?
Thanks for your help!
EDIT:
I have the following:
if exists('*GitBranchInfoString') let &stl.='%{GitBranchInfoString()}' endif
vim vim plugin
greduan Dec 04 '12 at 19:23 2012-12-04 19:23
source share