Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 63bdc97c93951a85b0c9159bd83841d7665345a4 1 parent 28be919
@awakenrz awakenrz authored committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.