> -----Original Message-----
> From: Silent1 [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 12, 2006 1:39 PM
> To: [email protected]
> Subject: omni completion, calling different types
>
> I'm using the omni completion so far on my php scripts and
> i'm wondering if there are ways i can call different sets of
> data with different key strokes.
>
> ctrl-x+ctrl+o will bring up everything and display everything and will
> open up a preview window that has info if a function is
> called with parameters. How do i get the menu that comes up
> to display the parameters as well? They come up in the
> preview window just fine just wondering if i can see them in
> the drop down menu.
>
This is up to the plugin developer.
The sqlcomplete.vim plugin has been designed to work with other completion
plugins. Since most programming languages today have some form of access to
a database you still need to be able program SQL. So regardless whether you
are programming in PHP, Ruby, JSP, VimL you can do the following:
:e file.php
:set ft=sql
:set ft=php
Now the SQL completion is active and can be used in conjunction with the PHP
completion plugin.
It is triggered (while in insert mode) using <C-C> followed by a key.
The key is what allows you to filter what is displayed in popup window.
The key can be many things:
t - table list
p - procedure list
v - view list
a - all syntax items
k - keywords (for the SQL syntax language)
And so on.
Perhaps Mikolaj could extend the PHP completion plugin in the same manner.
Dave