Skip to content

Instantly share code, notes, and snippets.

@dhruv
Forked from leolord/vim.sh
Created August 4, 2021 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dhruv/4bbe08d1341a4672582dcac8a05e35ca to your computer and use it in GitHub Desktop.
Save dhruv/4bbe08d1341a4672582dcac8a05e35ca to your computer and use it in GitHub Desktop.
Compiling vim on Ubuntu 18 with LUA-support
# Remove previous installations
sudo apt-get remove vim vim-runtime vim-tiny vim-common
# Install dependencies
sudo apt-get install libncurses5-dev python-dev liblua5.3-dev lua5.3 python3-dev
# Fix liblua paths
# You have to compile luajit for yourself.
sudo ln -s /usr/include/lua5.3 /usr/include/lua
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/local/lib/liblua.so
# Clone vim sources
cd ~
git clone https://github.com/vim/vim.git
cd vim
./configure \
--enable-luainterp \
# --enable-pythoninterp \
# --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ \
--enable-python3interp \
--with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/ \
--enable-cscope \
--disable-netbeans \
--enable-terminal \
--disable-xsmp \
--enable-fontset \
--enable-multibyte \
--enable-fail-if-missing \
--with-compiledby=leolord \
--with-modified-by=leolord
make VIMRUNTIMEDIR=/usr/share/vim/vim74
sudo apt-get install checkinstall
sudo checkinstall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment