|
Vim omin-completion for PHP
I've been using Eclipse to work on my PHP projects for a while now, but have recently moved back to vim to save on system resources. I have vim setup and working exactly how I like it (with indentation, syntax highlighting, setting up tags, working with tabs etc.) except for one issue - auto (or omni) completion. I use ctags to build a tags file for the project I'm working on (I don't have access to the machine where the script is sitting at the moment - but it basically ignores everything but .php files, and does a recursive search under the folder I pass it).
I then set the tags file in vim and go to work - C-X, C-o works but it does not give me a context sensitive list of options. For example, if I have a Class called PersonBase which has a static method called retrieveByPK, typing in PersonBase::re (C-X,C-o) gives me a list of more than just the two static methods contained in the PersonBase class (this list includes some methods from the PHP library itself). It gets even worse when using omni-completion with Objects returned from a function. I get a list of all available functions which I have to browse through to get to the one I need.
I was wondering if anybody can help me out with this problem - it's not a show stopper for me, 'cause Vim brings a lot more to the table, but I would really like auto-completion to be working so that I can start being a tad more productive.
|