PDA

View Full Version : OmniCppComplete question (Vim)



kogger
March 16th, 2010, 04:31 AM
I downloaded the omnicppcomplete plugin for Vim, and it makes several claims that I have thus far been unable to get it to do, namely this-> completion and namespace references. The page on the vim wikia (http://vim.wikia.com/wiki/C%2B%2B_code_completion) says that if the command
:set omnifunc? displays "ccomplete#Complete", then the plugin is not installed. However, after installing it and running the command, it still displays "ccomplete#Complete". Is it simply not working? If so, how can I get it to work, or what is a better c++ completion plugin?

MadCow108
March 16th, 2010, 09:21 AM
does vim know the file is a c++ file?
what vim thinks it is can be checked with
:set filetype?

kogger
March 16th, 2010, 12:52 PM
Yes, :set filetype? returns "cpp".

EDIT: Weird. Apparently it returns "omni#cpp#complete#Main" on Linux...maybe I installed it wrong on windows?

kogger
March 16th, 2010, 01:33 PM
And I found the problem. Turns out there was a lingering call to "set omnifunc=ccomplete#Complete" that I put in before I installed omnicppcomplete. >_>