Hi Bram, On Mon, Mar 21, 2022 at 4:11 AM Bram Moolenaar <[email protected]> wrote: > > It's actually nice that the new :source functionality makes this easy to > try out. >
It involves a little bit more typing to try out the Vim9 sample code in the help text compared to the legacy code. For the legacy script examples in the help text, you can visually select the code and run the ":'<,'>source" command. For the Vim9 script examples in the help text, you need to visually select the code and run the ":vim9cmd :'<,'>source" command. The visual selection range needs to be prefixed with "vim9cmd :". > > However, it might be that two examples overlap, since this > file is a help file with unrelated examples. Perhaps we need a way to > clear what the script contains? We can't use "!", it already has a > meaning for :source. Perhaps "[range]source ++clear" ? > I can add support for this. But this involves more typing though. Regards, Yegappan -- -- 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/CAAW7x7%3DFEuyoW3e-Ybj1fBtVfiEeM7BCiK0Gmf%2B_R%2BbGmDWvoA%40mail.gmail.com.
