From 7163f4e4fac57c4a4cab5bcfd9fb676626364edb Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 3 Oct 2011 01:57:33 +1300 Subject: [PATCH] Check for ctags in default locations of homebrew and macports --- autoload/tagbar.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim index 1d43683..15b7607 100644 --- a/autoload/tagbar.vim +++ b/autoload/tagbar.vim @@ -36,6 +36,12 @@ if !exists('g:tagbar_ctags_bin') let g:tagbar_ctags_bin = 'exuberant-ctags' elseif executable('exctags') let g:tagbar_ctags_bin = 'exctags' + elseif has('macunix') && executable('/usr/local/bin/ctags') + " Homebrew default location + let g:tagbar_ctags_bin = '/usr/local/bin/ctags' + elseif has('macunix') && executable('/opt/local/bin/ctags') + " Macports default location + let g:tagbar_ctags_bin = '/opt/local/bin/ctags' elseif executable('ctags') let g:tagbar_ctags_bin = 'ctags' elseif executable('ctags.exe')