I've searched around for an hour, both on Stack Overflow and elsewhere. Alas! Please help. Vim's omnicompletion just doesn't work.
I have Vim 7.2 compiled with Python support.
filetype plugin onis in my.vimrc.When a
.pyfile is open,:echo &omnifuncprintspythoncomplete#Complete.I'm working with a large project and I have a
tagsfile generated withexhuberant-ctags. It's in Vim'sctagspath. I can test it by typing ^] on a symbol and I'm then taken to the symbols' definition.Update 1: All of my project's code is in the python-in-Vim's path. I can
:python import myprojectsuccessfully.
Now, anywhere I try C-x C-o, all I get is:
-- Omni completion (^O^N^P) Pattern not found
What am I doing wrong?
Update 2: When I type C-x C-o C-n at the module-level, Vim displays a completion popup with a few module-level constants from other modules in my project. But it's only constants (symbols capital letters) and the completion still doesn't work anywhere else.
Update 3: I've found that C-x C-o at the top of the file starts some kind of omnicompletion, and completion for pprint. brings up the menu and quick-reference of everything in the pprint module. However, none of my own module's imports are being completed.