Skip to content

Instantly share code, notes, and snippets.

@HaiyongJiang
Last active August 11, 2017 13:53
Show Gist options
  • Save HaiyongJiang/d5b179d798fe8e53cbf3669a4fe59feb to your computer and use it in GitHub Desktop.
Save HaiyongJiang/d5b179d798fe8e53cbf3669a4fe59feb to your computer and use it in GitHub Desktop.
Installing vim with lua, python on Ubuntu/LinuxMint
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 https://github.com/vim/vim
git pull && git fetch
cd vim/src
make distclean # if vim was prev installed
./configure --prefix=installer_dir \
--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 \
--enable-cscope
make & 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