Saturday, November 20, 2010

Re: Omnifunc

Excerpts from epanda's message of Sat Nov 20 09:56:36 +0100 2010:
> But with a proposal list like omnifunc do in FuzzyFinder.

At this point you have to understand that there is no "single omnifunc"
completion. omnifunc is a configuration option. It can be customized.
> I would just type:

> I would like to call this func with the same way that FuzzyFinder
> :ARCHIVDIR then...

So you know where you have to look.
Open the FuzzyFinder plugin, search for the word command.

It'll look like this:

command FufFile -complete=customfunc,... or the like

Copy paste that line and call your func the way I showed you in my
previous mail using <f-args>

Then you're done. (So you call you function by using a command which
provides the completion as specified)

Read :h command -> complete* to see all options. The most simple option
is file which completes filenames as in :e.

Marc Weber

--
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

No comments:

Post a Comment