Skip to content

Commit d713d07

Browse files
committed
Add `ctags-exuberant' to the list of program names (closes issue #39)
1 parent 43ae6d7 commit d713d07

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

autoload/xolox/easytags.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" Last Change: April 19, 2013
44
" URL: http://peterodding.com/code/vim/easytags/
55

6-
let g:xolox#easytags#version = '3.1'
6+
let g:xolox#easytags#version = '3.1.1'
77

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

@@ -33,7 +33,7 @@ function! xolox#easytags#register(global) " {{{2
3333
endif
3434
endif
3535
endfunction
36-
36+
3737
" The localtime() when the CursorHold event last fired.
3838
let s:last_automatic_run = 0
3939

plugin/easytags.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim plug-in
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: October 29, 2011
3+
" Last Change: April 19, 2013
44
" URL: http://peterodding.com/code/vim/easytags/
55
" Requires: Exuberant Ctags (http://ctags.sf.net)
66

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

0 commit comments

Comments
 (0)