Skip to content

Instantly share code, notes, and snippets.

@salverde
Forked from tehmachine/vim_lua.md
Created February 7, 2025 16:54
Show Gist options
  • Save salverde/4ab5046eee3798f919c307fac0eb943c to your computer and use it in GitHub Desktop.
Save salverde/4ab5046eee3798f919c307fac0eb943c 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
@salverde
Copy link
Author

salverde commented Feb 7, 2025

doas apk add vim lua

just had to do this on Alpine ^^

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