Skip to content

Instantly share code, notes, and snippets.

@mattia72
Last active February 5, 2019 09:30
Show Gist options
  • Save mattia72/bec646c1087757d1424e41fa7bd164c2 to your computer and use it in GitHub Desktop.
Save mattia72/bec646c1087757d1424e41fa7bd164c2 to your computer and use it in GitHub Desktop.
Build Vim with lua support in MSYS2
https://github.com/Alexpux/MSYS2-packages/issues/16
Download via pacman ncurses-devel ruby python2 python3 and lua source from web
Download and compile lua5.2 (cd src && make mingw && cd .. && make install )
For python3 support : download libint and make it visible by renaming msys-intl-8.dll to libintl.dll and putting it in /usr/lib
Run the following in vim/src:
./configure --prefix=/usr --with-tlib=ncursesw --enable-luainterp --with-lua-prefix=/usr/local --disable-gui --disable-tclinterp --enable-cscope --without-x CPPFLAGS="${CPPFLAGS} -I/usr/include/ncursesw" --enable-python3interp=dynamic --enable-rubyinterp=dynamic --enable-pythoninterp=dynamic --enable-multibyte && make
cd .. && make install
run vim and do :version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment