Tony wrote:

> Example:
>         :scriptversion 4 | echo 123'456'789 | scriptversion 1 | echo 
> 123'456'789
> now gives
>         E984: :scriptversion used outside of a sourced file
> I suggest displaying
>         123456789
>         123 456 789
> instead.
> 
> This would make it possible to use at the command-line syntaxes not
> supported at scriptversion 1, sometimes making typing easier, as e.g.
> for big numbers.

Hmm, I don't really want to allow using :scriptversion at the command
line, it is really meant to be used in a script.

We should be able to use the ":vim9cmd" modifier.  However, it appears
not to work.  I can fix that.  Then this works:

        :vim9cmd echo 123'456'789

-- 
Seen on the back of a biker's vest: If you can read this, my wife fell off.

 /// 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/202108081756.178HuwWR2177162%40masaka.moolenaar.net.

Raspunde prin e-mail lui