Skip to content

Instantly share code, notes, and snippets.

@tehmachine
Last active March 31, 2025 14:25
Show Gist options
  • Select an option

  • Save tehmachine/962639982bed614f1965d0fe405ae5f5 to your computer and use it in GitHub Desktop.

Select an option

Save tehmachine/962639982bed614f1965d0fe405ae5f5 to your computer and use it in GitHub Desktop.
Compile Vim with Lua

Original issue: Shougo/neocomplete.vim#31

@JohanTan From my experience, this is how it will work (only tested on Ubuntu):

sudo apt-get install liblua5.1-dev
sudo cp -r /usr/include/lua5.1/* /usr/include/lua5.1/include/
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.1.so /usr/local/lib/liblua.so

Go to vim source folder:

./configure --with-features=huge \
            --enable-cscope \
            --enable-pythoninterp=yes \
            --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
            --enable-multibyte \
            --enable-fontset \
            --disable-gui \
            --disable-netbeans \
            --enable-luainterp=yes \
            --with-lua-prefix=/usr/include/lua5.1 \
            --enable-largefile
make
sudo make install
@gonzaru

gonzaru commented Feb 18, 2023

Copy link
Copy Markdown

Two years later, still having to do the same hack...

Hello, please see my comment below.

Regards,

@inkpark

inkpark commented Apr 14, 2023

Copy link
Copy Markdown

thx for sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment