打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
vim taglist 解决ctags: unrecognized option '--format=2'

vim taglist 解决ctags: unrecognized option '--format=2'

分类: vim 86人阅读 评论(0) 收藏 举报

将系统由fedora换为mint,使用原vim配置文件,使用taglist时候出现以下错误:

Taglist: Failed to generate tags for ....(a file)
ctags: unrecognized option '--format=2'^@^ITry `ctags --help' for a complete list of options.^@

而且无法生成tag(已经安装了ctags、etags).

解决方案:

以下摘自:http://vim-taglist.sourceforge.net/manual.html。

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   ctags: 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.

http://vim-taglist.sourceforge.net/manual.html#%27Tlist_Ctags_Cmd%27

If exuberant ctags is not present in one of the directories specified in thePATH environment variable, then set this variable to point to the location ofthe ctags utility in your system. Note that this variable should point to thefully qualified exuberant ctags location and NOT to the directory in whichexuberant ctags is installed. If the exuberant ctags tool is not found ineither PATH or in the specified location, then the taglist plugin will not beloaded. Examples:        let Tlist_Ctags_Cmd = 'd:\tools\ctags.exe'        let Tlist_Ctags_Cmd = '/usr/local/bin/ctags'

 

sudo apt-get install exuberant-ctags

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
安装Exuberant Ctags及Tag List插件
How to display variables in Taglist window in...
shell下的编程vim ctags taglist (ubuntu)
vi/vim使用进阶: 使用taglist插件
vim的插件taglist的安装
vim+ctags使用方法
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服