I have done the similar thing, using external library, Qt library, and realize the omnicppcomplete in vim.
This is a link to that http://wend.elmaqu.es/?p=103 I think you steps are the same as that in the link. So I can only suppose that the whether the codes in your files in your diretory ~/OpenFOAM/OpenFOAM-2.0.x/ is correctly. I mean, separate all declaration and implementation in header files and source files, something similar to that. I hope when you get it done, you can mail me and tell me how you get it done, sharing your experience. Best Regards 2011/7/11 AlmostSurelyRob <[email protected]> > Dear All, > > I would appreciate if you could help me set-up omni for an external C++ > library. Following these instructions > http://vim.wikia.com/wiki/VimTip1608 > > I was able to bring omni functionality to my cpp code. So now whenever I > type say: > > std::list<dimensionedScalar> *lst > lst ->... > > vim displays appropriate class components. > > Now I am trying to repeat this trick for a set of libraries that I am using > in my project. The project is basically a large C/C++ library - it's called > OpenFOAM. > > I create the tags with > ctags -R --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ > ~/OpenFOAM/OpenFOAM-2.0.x/ > mv tags OF > > I add the tags to my vimrc > set tags+=~/.vim/tags/OF > > And I try to use it and: > 1) Typing namespace works > Foam::fvc::... > > 2) But when I want to access components of objects e.g.: > > volScalarField alpha1 (constructor) > aplpha1. ... > > I get a Pattern Not Found error. Instead I would expect omni to give me > functions or public components of volScalarField class. > > > How can I check what's happening? How can I fix it? Is there any debug mode > for omni? I would be really grateful for any assistance. > > Kind Regards, > Robert > > > > -- > View this message in context: > http://vim.1045645.n5.nabble.com/omni-and-OpenFOAM-tp4574472p4574472.html > Sent from the Vim - General mailing list archive at Nabble.com. > > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > -- Stanley Rice (Conghui He) Sun Yat-sen University -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
