ctags: 提示错误ctags: unrecognized option 'format=2' 沉沉_

重新安装Ubuntu系统时,用原来的备份的家目录下的.vimrc文件和.vim文件夹内的所有内来恢复vim 的使用环境,但是在使用Taglist 插件生存 tags的时候提示:

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

百度了一下,找到一种解决的方法:

sudo apt-get install ctags ,然后会提示如下信息,安装即可解决。

Note, selecting 'exuberant-ctags' instead of 'ctags'

原因:安装系统默认的Ctags是GNU 自带的ctags,而taglist插件只能与exuberant-ctags 配合使用,所以要安装exuberant-ctags插件。

原文地址:https://www.cnblogs.com/chenchenluo/p/2571659.html