Skip to content

Instantly share code, notes, and snippets.

@jacoelho
Forked from akolosov/gist:cedaac86b333a4ced95f
Last active March 5, 2017 15:26
Show Gist options
  • Save jacoelho/c515209a8e13b4dfa9e338b376b2d2bb to your computer and use it in GitHub Desktop.
Save jacoelho/c515209a8e13b4dfa9e338b376b2d2bb to your computer and use it in GitHub Desktop.
vim8 with lua+GUI on Ubuntu 14.04
#!/bin/sh
sudo apt-get remove -y --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get install -y --no-install-recommends \
liblua5.1-dev \
luajit \
libluajit-5.1 \
python-dev \
ruby-dev \
libperl-dev \
git-core \
libncurses5-dev \
libgnome2-dev \
libgnomeui-dev \
libgtk2.0-dev \
libatk1.0-dev \
libbonoboui2-dev \
libcairo2-dev \
libx11-dev \
libxpm-dev \
libxt-dev
sudo mkdir /usr/include/lua5.1/include
sudo ln -s /usr/include/luajit-2.0 /usr/include/lua5.1/include
cd ~
git clone https://github.com/vim/vim.git
cd vim/src
make distclean
./configure --with-features=huge \
--enable-rubyinterp \
--enable-largefile \
--disable-netbeans \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
--enable-perlinterp \
--enable-luainterp \
--with-luajit \
--enable-gui=auto \
--enable-fail-if-missing \
--with-lua-prefix=/usr/include/lua5.1 \
--enable-cscope
make
sudo make install
cd ..
sudo mkdir /usr/share/vim
sudo mkdir /usr/share/vim/vim74
sudo cp -fr runtime/* /usr/share/vim/vim74/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment