New answers tagged


Use :h call(): func! Bar(...) abort return a:000 endfunc func! Foo(...) abort echo call('Bar', a:000) endfunc call Foo('asdf', 'qwer') " --> ['asdf', 'qwer']


To test whether a function exists, you should check *funcname (with a "star") prefix. So this will work: :echo exists('*Foo') 1 Checking a name without the "star" prefix will actually check whether a variable by that name exists: :let Bar = 99 :echo exists('Bar') 1 See :help exists().


There was a regression bug in 8.2.3337 and it was fixed yesterday.

Top 50 recent answers are included