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
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/CAJkCKXucfML%3DS3KCsH1RXZrJu0PsZPB6i42ABAHRsbXHrVm2%2Bg%40mail.gmail.com.