Hacker News new | ask | show | jobs
by humanrebar 3212 days ago
"It isn’t widely known that Vim has interfaces into several popular scripting languages: Python, Ruby, Perl, Scheme, and Tcl."

https://items.sjbach.com/97/writing-a-vim-plugin

2 comments

A lot of those languages don't come activated by default on the packaged versions of Vim - Lua is one of them, at least on osx/homebrew.

That strongly dissuades me from writing plugins in anything other than Vimscript. It might work for the guy who recompiles his Vim often, but it will not work on that vim instance running in your server. Ubiquity is one of Vim's main points.

Doesn't Vim have Lua support too?
Neovim does, and it will be a first class scripting citizen in 0.3.

https://neovim.io/roadmap/

I know there are plugins for the lua file type (syntax highlighting, etc.). I don't know if you can write plugins in lua.
Lua is a valid language to write plugins.