What will be the desired effect? What do you expect? What are you getting? Vim does not have an “autocomplete” function: its own completion brand is called “omni completion” and is not automatic at all.
I have been using the phpComplete script linked in one of the other questions, combined with ctags without any problems for quite some time. In fact, I wrote the following examples, thinking that I was using it, but I forgot that a few weeks ago I deleted a bunch of scripts and plugins, including phpComplete.vim .
So the following works very well with Vim 7.3 / Exuberant Ctags 5.8 stock.
From a.php :
<?php class MyClass { public function MyClass(argument) { echo 'Hello.'; } private function secret() { echo 'Shhhh…'; } public function say() { echo 'what?'; } } ?>
and cursor as specified in b.php
<?php include 'a.php'; $example = new MyClass(); $example->|
<Cx><Co> gives me the following options:
say( f MyClass( f
I don't get a list of built-in functions a mile long, and I don't even get private methods.
source share