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.

-- 
hundred-and-one symptoms of being an internet addict:
193. You ask your girlfriend to drive home so you can sit back with
     your PDA and download the information to your laptop

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/20220307154827.6ABD81C042A%40moolenaar.net.

Raspunde prin e-mail lui