> Hi,
>
> I have done a function that archive automatically a directory.
> Archive(dirname)
>
> I would like know to call this func from a omnifunc list of
> directories but I don't understand very well the help.
>
> Can someone may explain a little bit how can I build the dirs'list of
> omnifunc and call myfunc Archive().
Mmh. Do you really have to code this up manually?
Usually you use split(glob(' a pattern'),"\n") to get a file list.
Then you filter it.
In any case what you write doesn't make sense to me because you usually
call functions this way:
command -nargs=1 -complete=file Archive :call Archive(<f-args>)
But then you don' use "omni" completion. You rather use custom
completion then.
Unless you provide more details its impossible to help.
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