Complete with Funcref?

2007-08-24 Fir de Conversatie Andy Wokula
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

Re: Complete with Funcref?

2007-08-24 Fir de Conversatie Tony Mechelynck
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