You are not logged in.

#1 2009-06-01 12:05:05

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

vim omnicompletion not working

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

#2 2010-03-20 13:52:52

Nanthiel
Member
From: Slovenia
Registered: 2009-09-20
Posts: 148

Re: vim omnicompletion not working

I'm getting the same thing, I can't get any omnicomplete to work! It's driving me mad!

Offline

#3 2010-04-23 11:23:41

Nanthiel
Member
From: Slovenia
Registered: 2009-09-20
Posts: 148

Re: vim omnicompletion not working

Got it to work — mine got ruined because of the settings line

set wildignore=*.class

,
which made the Reflection.class file not recognizeable.

Offline

Board footer

Powered by FluxBB