Wednesday, March 12, 2014

phpcomplete.vim

Hi,

I'm trying to push a new phpcomplete.vim to the default distribution.
The development is on github under this repo:
https://github.com/shawncplus/phpcomplete.vim
(the proposed new version also attached to this message, it's a one file bundle)

Following Mr. Bram's suggestion I'd like to start a discussion and ask for
suggestions.

The main problem is with my proposed code is that it's simply too big. The bulk
of the file is of course the information needed to provide completions for PHP's
built-in functions, classes. (In the git repo, these are in under the
https://github.com/shawncplus/phpcomplete.vim/blob/master/misc/builtin.vim file)

The goal is to trim down the size of the plugin to be around the current version
which is 287K (i guess a little bit bigger is OK too), and to make it faster to
load when the first PHP file is opened, while keeping it useful.

I would really appreciate any idea or input on what could be done to achieve
this.
Apart from the size, if you are using vim for php development and feel adventurous, please try out the plugin and report any bugs or errors. (github issues would be ideal).

The built-in information itself is broken up by extension and the user can
configure what extension should be included in completions, so the obvious answer
is to throw away information for the less commonly used extensions. The list of
currently enabled-by-default things are in the following variables:
g:phpcomplete_active_function_extensions
g:phpcomplete_active_class_extensions
g:phpcomplete_active_interface_extensions
g:phpcomplete_active_constant_extensions

The data structures are almost exclusively auto-generated so formatting changes
are also fairly easy to do too (albeit I'm not sure if it's worth it).

Thanks in advance,
David

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment