c++vimomnicppcomplete

Vim OmniCppComplete on vectors of pointers


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


Solution

  • 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 the completeopt option, type :help completeopt in Vim for more information.