From a832db8b4777515bff5c4b8ed1dc971552b9cfb6 Mon Sep 17 00:00:00 2001 From: Jan Larres Date: Mon, 17 Jan 2011 00:41:41 +1300 Subject: [PATCH] Use proper ctags binary name on Debian-like systems. --- plugin/tagbar.vim | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugin/tagbar.vim b/plugin/tagbar.vim index b678136..9ecdeac 100644 --- a/plugin/tagbar.vim +++ b/plugin/tagbar.vim @@ -18,17 +18,17 @@ if !exists('*system') finish endif -if !exists('g:tagbar_ctags_exe') - if executable('exuberant-ctags') - let g:tagbar_ctags_exe = 'exuberant-ctags' +if !exists('g:tagbar_ctags_bin') + if executable('ctags-exuberant') + let g:tagbar_ctags_bin = 'ctags-exuberant' elseif executable('exctags') - let g:tagbar_ctags_exe = 'exctags' + let g:tagbar_ctags_bin = 'exctags' elseif executable('ctags') - let g:tagbar_ctags_exe = 'ctags' + let g:tagbar_ctags_bin = 'ctags' elseif executable('ctags.exe') - let g:tagbar_ctags_exe = 'ctags.exe' + let g:tagbar_ctags_bin = 'ctags.exe' elseif executable('tags') - let g:tagbar_ctags_exe = 'tags' + let g:tagbar_ctags_bin = 'tags' else echomsg 'Tagbar: Exuberant ctags not found, skipping plugin' finish @@ -281,7 +281,7 @@ function! s:ProcessFile(fname, ftype) let ctags_args .= ' --language-force=' . ctags_type . \ ' --' . ctags_type . '-kinds=' . ctags_kinds . ' ' - let ctags_cmd = g:tagbar_ctags_exe . ctags_args . shellescape(a:fname) + let ctags_cmd = g:tagbar_ctags_bin . ctags_args . shellescape(a:fname) let ctags_output = system(ctags_cmd) if v:shell_error