I'd like to have a Funcref provide completions, but
this seems not to be supported yet:
function! TestComplete(arglead, cmdline, curpos)
return foo\nbar
endfunction
let TestFuncref = function(TestComplete)
command! -nargs=1 -complete=custom,TestFuncref Testcmd
:Testcmd Tab
E117: Unknown
Andy Wokula wrote:
I'd like to have a Funcref provide completions, but
this seems not to be supported yet:
function! TestComplete(arglead, cmdline, curpos)
return foo\nbar
endfunction
let TestFuncref = function(TestComplete)
command! -nargs=1 -complete=custom,TestFuncref