Vim OmniCppComplete 关于指针向量
我可能在设置中做错了什么,但是 OmniCppComplete 是否应该在执行此操作时提供类的成员/函数?
vectorofpointers[0]->
目前,我在尝试时得到的只是与向量类本身相关的东西,这显然不是很有用。我认为在我标记 /usr/include/ 之前它可能已经工作了,但我可能是错的。
另外,是否可以禁用预览窗口?我发现它只会让我的工作空间变得混乱。由于我启用了 ShowPrototypeInAbbr 我真的不需要它。
谢谢,
亚历克斯
I might have done something wrong in the set up but is OmniCppComplete supposed to provide the members/functions of classes when doing this?
vectorofpointers[0]->
At the moment all I get when trying that are things relating to the vector class itself, which obviously isn't very useful. I think it might have been working before I tagged /usr/include/ but I could be wrong.
Also, is it possible to disable the preview window? I find it just clutters up my workspace. And since I enabled ShowPrototypeInAbbr I don't really need it.
Thanks,
Alex
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为不可能对向量中包含的对象获得正确的代码完成,但如果我弄错了,请有人纠正我。
要禁用预览窗口,请确保不为
completeopt
选项设置preview
,在 Vim 中输入:helpcompleteopt
了解更多信息。I do not think it is possible to get proper code completion on the objects that are included in the vector, but someone please correct me if I am mistaken.
To disable the preview window, make sure to not set
preview
for the thecompleteopt
option, type:help completeopt
in Vim for more information.我们终于在 Vim 中使用 GCCSense 实现了 C++ 的健全代码补全。使用 GCCSense,可以自动完成向量的内容。
We finally have sane code completion for C++ in Vim using GCCSense. With GCCSense it is possible to autocomplete on the contents of a vector.