Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install vim with lua using brew?

I want to install vim with Lua via brew, but I couldn't.

I've tried:

brew install vim --with-lua

But I got an error:

Error: invalid option: --with-lua

Then, I tried:

brew info vim

But there is no option.

Although I reinstalled brew, the error has been caused. What should I do?

like image 493
kumegon Avatar asked Dec 22 '22 23:12

kumegon


2 Answers

Homebrew no longer provides options for packages. They've been intentionally removed because they're often poorly tested.

The default vim package has support for Lua, as does the macvim package if you prefer a GUI. It should be simple enough to do a brew install vim or brew install macvim after doing a brew update.

like image 124
bk2204 Avatar answered Dec 25 '22 12:12

bk2204


brew update
brew upgrade
brew install lua vim
like image 35
aihua Avatar answered Dec 25 '22 13:12

aihua