From 2e0d125b79a0714fd72b4e0933a9f12935824443 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Tue, 19 Jun 2012 16:49:55 +1200 Subject: [PATCH] Explicitly load plugin file if necessary --- autoload/tagbar.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 1e28051..ccd7262 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -22,6 +22,12 @@ scriptencoding utf-8 " Initialization {{{1 +" If another plugin calls an autoloaded Tagbar function on startup before the +" plugin/tagbar.vim file got loaded, load it explicitly +if exists(':Tagbar') == 0 + runtime plugin/tagbar.vim +endif + " Basic init {{{2 if !exists('g:tagbar_ctags_bin')