Created
October 20, 2016 02:30
-
-
Save beatwade/c0ce2457e990a790444af618226c13dd to your computer and use it in GitHub Desktop.
tagbar fix the bug in cgywin env in babun with universal ctags bugs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if v:shell_error || ctags_output !~# '\(Exuberant\|Universal\) Ctags' | |
if ctags_output =~ 'Universal Ctags' "fix the bug | |
return 1 | |
endif | |
let errmsg = 'Tagbar: Ctags doesn''t seem to be Exuberant Ctags!' | |
let infomsg = 'BSD ctags will NOT WORK.' . | |
\ ' Please download Exuberant Ctags from ctags.sourceforge.net' . | |
\ ' and install it in a directory in your $PATH' . | |
\ ' or set g:tagbar_ctags_bin.' | |
call s:CtagsErrMsg(errmsg, infomsg, a:silent, ctags_cmd, ctags_output) | |
let s:checked_ctags = 2 | |
return 0 | |
elseif !s:CheckExCtagsVersion(ctags_output) | |
let errmsg = 'Tagbar: Exuberant Ctags is too old!' | |
let infomsg = 'You need at least version 5.5 for Tagbar to work.' . | |
\ ' Please download a newer version from ctags.sourceforge.net.' | |
call s:CtagsErrMsg(errmsg, infomsg, a:silent, ctags_cmd, ctags_output) | |
let s:checked_ctags = 2 | |
return 0 | |
else | |
let s:checked_ctags = 1 | |
return 1 | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment