Skip to content

Instantly share code, notes, and snippets.

@lemonjp
Last active January 5, 2018 19:15
Show Gist options
  • Save lemonjp/b95981f602c448dea33dc66c3ea78064 to your computer and use it in GitHub Desktop.
Save lemonjp/b95981f602c448dea33dc66c3ea78064 to your computer and use it in GitHub Desktop.
Msys2 + Vim + Lua

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment