Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Installing vim 8.0.X with lua, python on Ubuntu 16.04
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
sudo rm -rf /usr/local/share/vim
sudo rm /usr/bin/vim
sudo mkdir /usr/include/lua5.1/include
sudo cp /usr/include/lua5.1/*.h /usr/include/lua5.1/include/
cd /opt/
git clone
git pull && git fetch
cd vim/src
make distclean # if vim was prev installed
./configure --with-features=huge \
--enable-rubyinterp \
--enable-largefile \
--disable-netbeans \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-perlinterp \
--enable-luainterp \
--with-luajit \
--enable-fail-if-missing \
--with-lua-prefix=/usr/include/lua5.1 \
sudo make install
# alias vi="vim" in .zshrc / .bashrc

This comment has been minimized.

Copy link

@akhiledge akhiledge commented Mar 30, 2019

sudo apt-get install lua5.1

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