编辑:如果我设置这样的路径“:set path =”,/usr/include,include,.. / include,/ home / steven / ovgl / include,“”
然后,YouCompleteMe可以从标签文件中读取有关标题的信息,如plugin faq中所述:
YCM does not read identifiers from my tags files
First,put
let g:ycm_collect_identifiers_from_tags_files = 1
in your vimrc.Make sure you are using Exuberant Ctags to produce your tags files since
the only supported tag format is the Exuberant Ctags format. The format
from “plain” ctags is NOT supported. The output of ctags –version should
list “Exuberant Ctags”.Ctags needs to be called with the
--fields=+l
(that’s a lowercase L,not a
one) option because YCM needs thelanguage:<lang>
field in the tags
output.NOTE: Mac OS X comes with “plain” ctags installed by default. brew install
ctags will get you the Exuberant Ctags version.Also make sure that your Vim tags option is set correctly. See
:h 'tags'
for details. If you want to see which tag files YCM will read for a given
buffer,run:echo tagfiles()
with the relevant buffer active. Note that that function will only list tag files that already exist.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。