-
-
Save shiqimei/12dc0df1b5ed35ce41caea9565310bf2 to your computer and use it in GitHub Desktop.
Install Vim 8.1 with Python 2, Python 3, Ruby and Lua - Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
sudo apt-get install -y 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 /usr/bin/vim | |
git clone https://github.com/vim/vim ~/vimtemp | |
cd ~/vimtemp | |
git pull && git fetch | |
cd src | |
make distclean | |
cd .. | |
./configure \ | |
--enable-multibyte \ | |
--enable-perlinterp=dynamic \ | |
--enable-rubyinterp=dynamic \ | |
--with-ruby-command=/usr/bin/ruby \ | |
--enable-pythoninterp=dynamic \ | |
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \ | |
--enable-python3interp \ | |
--with-python3-config-dir=/usr/lib/python3.6/config-3.6m-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="yourname" \ | |
--enable-fail-if-missing | |
make && sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment