On Sun, Jan 26, 2020 at 6:18 PM Tony Mechelynck
<[email protected]> wrote:
>
> IIUC, the following is now a valid construct in newly-written or
> updated non-"vim9script" script? (Let's say, a .vimrc which must also
> support an older Vim version from my Linux distro)
>
> if exists('vim9script') == 2

oops: if exists(':vim9script') == 2

>         import MyFunc as myfunc from '~/.vim/myvim9.vim'
> else
>         function s:myfunc()
>         ...
>         endfunction
> endif
> command MyCommand -nargs=0 -bar call s:myfunc()
>
> Best regards,
> Tony.

-- 
-- 
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/CAJkCKXsq4evmV%3DQ1XG9xmvuRg2SgUpo5qsx%2BFxq4gY%3DO5z2fNQ%40mail.gmail.com.

Raspunde prin e-mail lui