This following vim script calls a function that returns an array called lines
:
call vimwiki#diary#generate_diary_section()
There seems to be a bug and nothing is done with the lines
array—the content never gets added to the buffer. I have a two part question:
How do I capture the array returned from the function? I tried
let lines = call ...
but that didn't work.How to I dump the lines in the array into the existing file?
call
is when you don't care about the function's return value. Since you're using the return value here you must leave it off (let foo = somefunc(...)
).