Support to neobundle
Soufraz opened this issue · 4 comments
Hello,
Can I install the plugin with neobundle? If not, it's possible install the phpcomplete manually?
Waiting.. Thanks advance.
Hi,
Yes of course you can, (in fact i'm using NeoBundle myself).
Just add the github style package name like any other plugin and you are good to go:
NeoBundle 'shawncplus/phpcomplete.vim'
Ok.. The installation works fine. But, when typing something function of php or start to write $this inside some class, nothing happens.
Am I missing something?
The plugin doesn't do "complete-as-you-type" style functionality if this is what you are thinking of.
The usual way to invoke the completion plugins is to ask for "omni completion" with ctrl+xo in insert mode. This invokes the function in the ":omnifunc" option, which should be set to phpcomplete#CompletePHP.
This setting should already be set up by the default fttype plugin for php, so you shouldn't need to worry about it.
However you can check it's value by opening up a php file and type :set omnifunc and hit enter, and see what's printed on the status line. You should see omnifunc=phpcomplete#CompletePHP.
I'm gonna close this now, if you have more questions let me know.