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

The "Hello World" is not seen after this following command. Note, the
"set co=" actually has to change something.

gvim -u NONE -c "set columns=120" -c 'echomsg "Hello World"'

I've looked through "he :vim-arguments", but may easily have missed
something. It seems like gvim outputs "Press Enter or type command to
continue" but only the green word "continue" shows up, but it's indented
as though the first part of the message is overwritten or ???

I didn't find an option to: execute the commands so far, let vim finish
initialization, then execute remaining command as though they're from
the command line.
During startup redrawing is often postponed until all the settings have
been done and the size of the window is known.  Then a redraw is done
once Vim is ready for work.  This redraw may very well overwrite the
echo'ed message, or give you a prompt before it redraws.

It is hard to do otherwise.  If you really want to have the message show
up after all initializations are done, you could use a VimEnter
autocommand:

        au VimEnter * echomsg "Hello World"

Or use a timer:

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

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

gvim is getting fired off by mercurial. It's probably true that the only time you'll see an error during startup is when you're first setting things up, and of course that's when you'll most want to see an error. I came across this, because I was testing what happens if python is not available.

I may play around with timer_start in SpliceInit to display any initial problems. It looks perfect "when busy or not waiting for input". Thanks.

splice.executable = gvim
splice.args = -f $base $local $other $output -c "set columns=200" -c SpliceInit

-ernie

--
--
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/3f6bbc88-0687-d061-0841-db9ecb79b9c3%40raelity.com.

Raspunde prin e-mail lui