You are not logged in.
Hi,
I installed vim-omnicppcomplete via pacman. I followed this guide:
http://vim.wikia.com/wiki/C%2B%2B_code_completion
for makeing the std ctags and configuring my .vimrc (here it is:)
set tags+=~/.vim/tags/cpp
" build tags of your own project with CTRL+F12
map <C-F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
" OmniCppComplete
let OmniCpp_NamespaceSearch = 1
let OmniCpp_GlobalScopeSearch = 1
let OmniCpp_ShowAccess = 1
let OmniCpp_MayCompleteDot = 1
let OmniCpp_MayCompleteArrow = 1
let OmniCpp_MayCompleteScope = 1
let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"]
" automatically open and close the popup menu / preview window
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
set completeopt=menuone,menu,longest,preview
Now I have this code:
#include <vector>
int main()
{
std<int>::vector vi;
vi.
I get:
-- Omni completion (^O^N^P) Pattern not found
just after inserting the ".".
What could be wrong?
Thanks!
Nathan
Offline
I'm getting the same thing, I can't get any omnicomplete to work! It's driving me mad!
Offline
Got it to work — mine got ruined because of the settings line
set wildignore=*.class
,
which made the Reflection.class file not recognizeable.
Offline