Hacker News new | ask | show | jobs
by gorgoiler 1454 days ago
What are some of the advantages of Vim’s domain specific scripting language over, say, providing a Python API?
1 comments

Vim does provide a Python API :)

But most Vim addons seem to be written in Vimscript, and porting them to another language (which?) is a lot of work for little practical gain (for many/most addons).

And a Perl API :-)
Indeed, and Ruby, and who knows what else... surprised nodejs hasn't been shoved in as well. :)

To be honest I don't know how Brad keeps up with it all. And even has enough left over to add a new bespoke scripting language with Vim 9...

> and who knows what else

Okay, I did a quick grep through the documentation of my distros current vim installation and came up with support for Lua, MzScheme, Perl, Python, Ruby and tcl.

So yeah, there are lots of interfaces to chose from.