Plans (if any) for Vim9 runtime scripts?

22 views
Skip to first unread message

Lifepillar

unread,
May 29, 2021, 7:15:57 AM5/29/21
to vim...@googlegroups.com
What is the vision for future runtime scripts? Is there a plan to move
everything to Vim9—including, say, syntax scripts?

What is your recommendation to contributors? Is it too early to
translate runtime scripts to Vim9? Is it better to stick with the
current Vim Script for the time being?

I'd like to work on a major update on an ftplugin I contribute
maintaining, and I am wondering whether it is worth rewriting in Vim9
already.

Thanks,
Life.

Bram Moolenaar

unread,
May 29, 2021, 8:44:33 AM5/29/21
to vim...@googlegroups.com, Lifepillar
You can write the script in Vim9 syntax now. Keep in mind that some
things might still change. If you regularly update Vim and don't mind
updating your script once in a while that will be fine.

I don't plan a mass migration yet, not only because it's a lot of work,
also because there might still be a few bugs to fix. Having a few
people migrate their scripts helps to uncover problems. Not only bugs,
but also things that turn out to be confusing or can be further
improved.

Eventually most scripts should use Vim9 syntax. It's easier to use and
when using compiled functions will execute much faster.

I also plan to update the help to put the Vim9 syntax where a command is
explained, instead of putting it all in vim9.txt. That will be quite a
bit of work!

--
Life is a gift, living is an art. (Bram Moolenaar)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages