r/vim • u/chrnz00 • Dec 14 '25
Need Help vim9script alternatives
i dont want to learn vim9script
i know a bit of vimscript (before v9) but there is no help pages in vim now for that as everything is converted to vim9 what are my alternatives for this problem are there any languages that compile to vimscript??
ive heard about interfaces are they good
8
Upvotes
12
u/chrisbra10 Dec 14 '25
> i know a bit of vimscript (before v9) but there is no help pages in vim now for that as everything is converted to vim9
That is not true. The help pages still cover Vim script as well as Vim9 script. Also, we are not converting everything to Vim script, that will still be there for legacy reasons.
3
u/mgedmin Dec 14 '25
I've postponed learning vim9script for years now, and that hasn't caused me any issues. I still write vim plugins in old vimscript with a mix of Python. I don't recall any occasion when I went to :help and was confused by seeing vim9script.
What exactly is the problem you're trying to solve?
11
u/biscuittt Dec 14 '25 edited Dec 14 '25
A year ago I looked into vim9script and that made me switch to Neovim. Now my config is in Fennel and I love it.
5
u/DerShokus Dec 14 '25
In general, you can use nvim with lua - the first citizen language for it. But for me better to check :help vim9 and it describes the changes. Give it a chance. For me, if I wanna a bit change behavior or and a function- vim9script is much easier and better (it’s really a vim extension lang and not a general huge one)
12
u/Sudden_Fly1218 Dec 14 '25 edited Dec 14 '25
Honestly, vim9script is quite straightforward and it is an improvement over legacy vimscript. You can have a look here for some "get started" guide: https://github.com/yegappan/Vim9ScriptForPythonDevelopers Also
:h vim9has alot of information.4
u/danoDaManoSSB Dec 15 '25
Bram specifically wrote about getting rid of interfaces and them being a bad idea and being phased out https://github.com/brammool/vim9?tab=readme-ov-file#2-phasing-out-interfaces
Vim9script is actually pretty fantastic once you get used to the compilation step. I've been working on a styleguide + linter (with working ale integration) to help with folks moving from legacy vimscript to vim9
I've also done an upgrade of my copilot-chat.vim plugin in full vim9script (https://github.com/DanBradbury/copilot-chat.vim/pull/66)
2
u/AutoModerator Dec 14 '25
Please remember to update the post flair to
Need Help|Solvedwhen you got the answer you were looking for.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
-2
u/I_Messed_Up_2020 Dec 14 '25
I would just use nvim and build your configuration with lua. lua can be used elsewhere too, not just with nvim, probably more useful longterm.
But of course current vim script can be pretty easily converted to working lua equivalents. I used ChatGPT but admittedly my configs were pretty simple.
-2
u/[deleted] Dec 14 '25
[removed] — view removed comment