我想在Vim中使用Code Complention。我尝试使用本教程:http://design.liberta.co.za/articles/code-completion-intellisense-for-cpp-in-vim-with-omnicppcomplete/
我的问题:
这个终端提示应该在direcoty中生成一个“标签”文件,但似乎标志不对吗?
$ 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
我做某事吗?错误?这是我阅读的第二个教程,我总是在这一步失败。
最好的问候
答案 0 :(得分:2)
看起来你没有exuberant ctags。你应该安装它。
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