0
我想在Vim中完成Code完成。我尝试使用本教程中:http://design.liberta.co.za/articles/code-completion-intellisense-for-cpp-in-vim-with-omnicppcomplete/为vim omnicpp生成ctags不起作用?
我的问题:
这个终端提示应该产生在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 [email protected]
我做了什么。错误?这是我读过的第二篇教程,我总是在这一步上失败。
问候
创建我的'tags'文件完全相同的参数启动,它完美的作品。你使用什么版本的'ctags'!? – user1146332
哦,上帝~~我忘了我很久以前从elvis-tools安装ctags了....谢谢! –