From fbeea744d249e6958fd551a6a5164ee483fa3d9c Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 28 Mar 2011 12:34:41 +1300 Subject: [PATCH] expand() ctags path in case it is installed in home dir --- plugin/tagbar.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index 86bc43f..cf333d1 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -38,6 +38,13 @@ if !exists('g:tagbar_ctags_bin') echomsg 'Tagbar: Exuberant ctags not found, skipping plugin' finish endif +else + let g:tagbar_ctags_bin = expand(g:tagbar_ctags_bin) + if !executable(g:tagbar_ctags_bin) + echomsg 'Tagbar: Exuberant ctags not found in specified place,' + \ 'skipping plugin' + finish + endif endif let g:loaded_tagbar = 1