Is there a way to make use of two custom, complete functions in Vimscript?

Viewed 1229

Is there a way to achieve the following in Vim?

command! -nargs=* -complete=customlist,CustomFunc1 -complete=customlist,CustomFunc2 Foo call MyFunction(<f-args>)

The user will be able to tab-complete two arguments when calling the function Foo from Vim command line. The auto-complete will pull from two different lists.

E.g.:

:Foo arg1 good<TAB> whi<TAB>

Pressing Tab completes the words:

:Foo arg1 goodyear white
2 Answers
Related