Skip to content
Browse files

Version 0.11

ctag can output a tag file either called tags or TAGS. Now it can match both tags and TAGS.
  • Loading branch information...
1 parent 28be919 commit 63bdc97c93951a85b0c9159bd83841d7665345a4 @awakenrz awakenrz committed with Oct 15, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugin/ctagloader.vim
View
5 plugin/ctagloader.vim
@@ -6,6 +6,11 @@ function! SetCTags()
let ctagfile = substitute(system('ls ' . ctagdir . '/tags'), "\n", "", "")
if match(ctagfile, "^.*tags$") != -1
execute 'autocmd BufEnter * :setlocal tags+=' . ctagfile
+ else
+ let ctagfile = substitute(system('ls ' . ctagdir . '/TAGS'), "\n", "", "")
+ if match(ctagfile, "^.*TAGS$") != -1
+ execute 'autocmd BufEnter * :setlocal tags+=' . ctagfile
+ endif
endif
endfor
unlet ctagdir

0 comments on commit 63bdc97

Please sign in to comment.
Something went wrong with that request. Please try again.