Skip to content

Commit

Permalink
Add `ctags-exuberant' to the list of program names (closes issue #39)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Apr 19, 2013
1 parent 43ae6d7 commit d713d07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions autoload/xolox/easytags.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
" Last Change: April 19, 2013 " Last Change: April 19, 2013
" URL: http://peterodding.com/code/vim/easytags/ " URL: http://peterodding.com/code/vim/easytags/


let g:xolox#easytags#version = '3.1' let g:xolox#easytags#version = '3.1.1'


" Public interface through (automatic) commands. {{{1 " Public interface through (automatic) commands. {{{1


Expand Down Expand Up @@ -33,7 +33,7 @@ function! xolox#easytags#register(global) " {{{2
endif endif
endif endif
endfunction endfunction

" The localtime() when the CursorHold event last fired. " The localtime() when the CursorHold event last fired.
let s:last_automatic_run = 0 let s:last_automatic_run = 0


Expand Down
7 changes: 4 additions & 3 deletions plugin/easytags.vim
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
" Vim plug-in " Vim plug-in
" Author: Peter Odding <peter@peterodding.com> " Author: Peter Odding <peter@peterodding.com>
" Last Change: October 29, 2011 " Last Change: April 19, 2013
" URL: http://peterodding.com/code/vim/easytags/ " URL: http://peterodding.com/code/vim/easytags/
" Requires: Exuberant Ctags (http://ctags.sf.net) " Requires: Exuberant Ctags (http://ctags.sf.net)


Expand Down Expand Up @@ -70,7 +70,8 @@ function! s:InitEasyTags(version)
endif endif
else else
" Exuberant Ctags can be installed under multiple names: " Exuberant Ctags can be installed under multiple names:
" - On Ubuntu Linux, Exuberant Ctags is installed as `ctags'. " - On Ubuntu Linux, Exuberant Ctags is installed as `ctags-exuberant'
" (and possibly `ctags' but that one can't be trusted :-)
" - On Debian Linux, Exuberant Ctags is installed as `exuberant-ctags'. " - On Debian Linux, Exuberant Ctags is installed as `exuberant-ctags'.
" - On Free-BSD, Exuberant Ctags is installed as `exctags'. " - On Free-BSD, Exuberant Ctags is installed as `exctags'.
" IIUC on Mac OS X the program /usr/bin/ctags is installed by default but " IIUC on Mac OS X the program /usr/bin/ctags is installed by default but
Expand All @@ -80,7 +81,7 @@ function! s:InitEasyTags(version)
" some frustration the plug-in will search the path and consider every " some frustration the plug-in will search the path and consider every
" possible location, meaning that as long as Exuberant Ctags is installed " possible location, meaning that as long as Exuberant Ctags is installed
" in the $PATH the plug-in should find it automatically. " in the $PATH the plug-in should find it automatically.
for program in xolox#misc#path#which('ctags', 'exuberant-ctags', 'exctags') for program in xolox#misc#path#which('exuberant-ctags', 'ctags-exuberant', 'ctags', 'exctags')
if s:CheckCtags(program, a:version) if s:CheckCtags(program, a:version)
let g:easytags_cmd = program let g:easytags_cmd = program
return 1 return 1
Expand Down

0 comments on commit d713d07

Please sign in to comment.