Saturday, November 20, 2010

Re: Omnifunc

Excerpts from epanda's message of Sat Nov 20 12:04:47 +0100 2010:
>
> >
> > command FufFile -complete=customfunc,... or the like
>
> This one does not exists in fuf plugin.
>
> > Read :h command -> complete* to see all options. The most simple option
> > is file which completes filenames as in :e.
>
> So I tried a simple way
> command! -nargs=1 -complete=file ARCHIV :call Archive(<f-args>)
>
> It works but it is all in command line.
> I would like to understand how doing the same thing into proposal pink
> list.

You told me that you'd like to call your function.
the "pink" completion box has nothing to do with calling functions.

If you want to learn about how to use completion functinos try

:h completion-functions<cr>

There is a nice example (search for "CompleteMonth")

The help is your friend here.

However this will only complete words in the current buffer, not when
calling functions.

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: