On 3/7/22 7:48 AM, Bram Moolenaar wrote:

Or use a timer:

        call timer_start(50, {_ -> execute('"Hello World"')})

Works well. (I knew to replace -> with =>, but the bad dict had me going for a while)

I'd like to do multi-line output. Haven't been able to get it to work. Any ideas?

I thought to include some best guess instructions, with "instrs: list<string>" I tried 'echomsg instrs->join("\n")' and several other things. Saw plenty of returns and nulls (^M, ^@) and other weird things, but haven't been able to get multi-line output.

Outputting one line at a time left only the last line showing.

Tried putting a "messages" command in, but that didn't work. It works great from the command line.

I'm output all the stuff to a log, but for that to matter, the user needs to enable the log.

-ernie


I haven't tried these commands, might need some tweaks.


--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/832ad396-18a5-90fb-de57-dfce828d5da5%40raelity.com.

Raspunde prin e-mail lui