Vim插件Taglist报错Failed to generate tags

taglist插件只支持exuberant ctags tool,不支持GNU ctags或UNIX ctags,Mac或Ubuntu下自带的并不是exuberant ctags,所以执行TlistToggle vim报错,解决方案如下:

  1. 下载安装 exuberant ctags tool
  2. .vimrc 添加 let Tlist_Ctags_Cmd = ‘/usr/bin/ctags’


Q. When I try to open the taglist window, I am seeing the following error message. How do I fix this problem?
Taglist: Failed to generate tags for /my/path/to/file
tags: illegal option — -^@usage: ctags [-BFadtuwvx] [-f tagsfile] file …

A. The taglist plugin will work only with the exuberant ctags tool. You cannot use the GNU ctags or the Unix ctags program with the taglist plugin. You will see an error message similar to the one shown above, if you try use a non-exuberant ctags program with Vim. To fix this problem, either add the exuberant ctags tool location to the PATH environment variable or set the ‘Tlist_Ctags_Cmd’ variable.

This entry was posted in vim and tagged . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Free Web Hosting