Msys2 + Vim + Lua Install necessary packages and lua by pacman pacman -S base-devel msys2-devel git ruby python2 pacman -S ncurses-devel libcrypt-devel gettext-devel curl -R -O http://www.lua.org/ftp/lua-5.3.4.tar.gz tar xvzf lua-5.3.4.tar.gz cd lua-5.3.4/src make mingw && cd .. && make install git clone https://github.com/Alexpux/MSYS2-packages.git cd MSYS2-packages/vim Apply patch --- a/vim/PKGBUILD +++ b/vim/PKGBUILD @@ -75,13 +75,15 @@ build() { # make distclean ./configure \ + --enable-fail-if-missing \ --prefix=/usr \ --build=${CHOST} \ --with-features=huge \ --with-tlib=ncursesw \ --enable-cscope \ --enable-multibyte \ - --enable-luainterp=dynamic \ + --enable-luainterp \ + --with-lua-prefix=/usr/local \ --enable-perlinterp=dynamic \ --enable-pythoninterp=dynamic \ --enable-python3interp=dynamic \ Packaging makepkg pacman -U vim(version).pkg.tar.gz