Check for ctags in default locations of homebrew and macports

This commit is contained in:
Jan Larres 2011-10-03 01:57:33 +13:00
parent 9a6e21e44d
commit 7163f4e4fa

View File

@ -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')