为vim omnicpp生成CTAG不起作用?
我想在Vim中完成代码。我使用本教程进行了尝试: 我的问题是: 这个终端提示应该是在direcoty中生成一个“tags”文件,但是这些标志似乎不对为vim omnicpp生成CTAG不起作用?,vim,terminal,ctags,Vim,Terminal,Ctags,我想在Vim中完成代码。我使用本教程进行了尝试: 我的问题是: 这个终端提示应该是在direcoty中生成一个“tags”文件,但是这些标志似乎不对 $ ctags -R --c++-kinds=+p --fields=+iaS --extra=+q ./ 如果我在终端使用这个,我会得到这个 usage: ctags [flags] filenames... -Dword Ignore "word" -- handy for parameter macro name -F
$ ctags -R --c++-kinds=+p --fields=+iaS --extra=+q ./
如果我在终端使用这个,我会得到这个
usage: ctags [flags] filenames...
-Dword Ignore "word" -- handy for parameter macro name
-F Use /regexp/ (default)
-B Use ?regexp? instead of /regexp/
-N Use line numbers instead of /regexp/
-g Store static tags as though they were global (implies -h -s)
-s Include static tags
-e Include extern tags
-i Include inline definitions
-t Include typedefs
-v Include variable declarations
-h Add hints to help elvis distinguish between overloaded tags
-l Add a "ln" line number hint (implies -h)
-p Write parse info to stdout (for debugging ctags)
-d Warn about duplicates, on stdout
-x Write cross-reference table to stdout; skip "tags"
-r Write a "refs" file, in addition to "tags"
-a Append to "tags", instead of overwriting
If no flags are given, ctags assumes it should use -l -i -s -t -v
Report bugs to kirkenda@cs.pdx.edu
我做错什么了吗?这是我读的第二篇教程,我在这一步上总是失败
致以最诚挚的问候看起来你没有。你应该安装它
ctags--help
输出应该从以下内容开始
Exuberant Ctags 5.8, Copyright (C) 1996-2009 Darren Hiebert
Compiled: May 22 2012, 13:52:32
Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex
Exuberant Ctags 5.8版权所有(C)1996-2009 Darren Hiebert
编制时间:2012年5月22日13:52:32
地址:,http://ctags.sourceforge.net
可选编译功能:+通配符,+regex
我用完全相同的参数创建了我的标记
文件,它工作得非常完美。您使用哪一版本的ctags
!?哦,天哪~~我忘了很久以前我是用猫王工具安装CTAG的。。。。谢谢