Hi,

On Sun, Mar 20, 2022 at 1:19 AM Maxim Kim <[email protected]> wrote:
>
> Can it source the following:
>
> vim9script
>
> def Hello()
>    var myList = ['multi',
>             'lined',
>             'list'
>             ]
>    echo myList[0]
> enddef
>
> nnoremap <F5> <ScriptCmd>Hello()<CR>
>
> :4,7source
> :11source -- would proper script context be used here?
> ?
>

To source a Vim9 script from a buffer, it must start with "vim9script"
as the first line.
For a legacy script, you can source any range of lines.

- 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%3DfoMPiXGz-yEAyMJ2qPWvqa-dX6A_XETsFew_a3QQizg%40mail.gmail.com.

Raspunde prin e-mail lui