Skip to content

Instantly share code, notes, and snippets.

@y9c
Last active May 29, 2017 11:07
Show Gist options
  • Save y9c/9fb931e582a7d1747b7935f1a4c00bf2 to your computer and use it in GitHub Desktop.
Save y9c/9fb931e582a7d1747b7935f1a4c00bf2 to your computer and use it in GitHub Desktop.
Installing vim 8.0.X with lua 5.3, python on Ubuntu 16.04
# remove old vim
sudo apt purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo rm -rf /usr/local/share/vim
sudo rm /usr/bin/vim
# install dependence
sudo apt install liblua5.1-dev luajit libluajit-5.1 \
python3-dev \
ruby-dev \
libperl-dev \
libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev
# compile and install lastest version vim
cd /opt/
sudo git clone https://github.com/vim/vim
cd ./vim
sudo make distclean # if vim was prev installed
# --enable-pythoninterp=dynamic \
# --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
sudo ./configure --enable-multibyte \
--enable-perlinterp=dynamic \
--enable-rubyinterp=dynamic \
--with-ruby-command=/usr/bin/ruby \
--enable-python3interp \
--with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu \
--enable-luainterp \
--with-luajit \
--enable-cscope \
--enable-gui=auto \
--with-features=huge \
--with-x \
--enable-fontset \
--enable-largefile \
--disable-netbeans \
--with-compiledby="YeChang" \
--enable-fail-if-missing
sudo make -j8
sudo make install
# alias vi="vim" in .zshrc / .bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment