On 8/5/2010 2:36 AM, Doug Kearns wrote:
On Thu, Aug 5, 2010 at 3:20 AM, Shawn B.<[email protected]>  wrote:
As per numerous requests I've been told to post here to get my updated
phpcomplete.vim script (http://www.vim.org/scripts/script.php?
script_id=3171) included as the default in 7.3. How does one go about
doing that?

Shawn, I was looking at the description you have at:
http://www.vim.org/scripts/script.php?script_id=3171


$instance = new Class;
...
$instance->Blah(); // <-- complete without comment

It also allows support for singleton instantiations:

$instance = Class::getInstance();
$instance->completeMe(); // sweet completion

In both cases of completion, since you have not shown the methods of your class, it isn't clear what was typed and what was completed or if it was appropriate. Could you possibly put in some stubs for your class and then perhaps show something like this:

$instance-><C-X><C-O>
$instance->completeMe(); // sweet completion

Or
$instance-> (completion is automatic when typing the ">"
$instance->completeMe(); // sweet completion

Dave


--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui