Last active
April 8, 2021 01:36
-
-
Save mkhuda/2e4c6f602786753aaa09c324ff47086e to your computer and use it in GitHub Desktop.
Install Vim 8 with Python, Python 3, Ruby, Lua, Clipboard and Arabic support on Ubuntu 14.04/16.04
This file contains hidden or 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
# remove all installed vim package | |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
# install dependencies (for normal users) | |
sudo apt-get install gtk+-2.0 liblua5.1-dev luajit libluajit-5.1 python-dev python3-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev | |
# install dependencies (for ruby-rbenv users) | |
sudo apt-get install gtk+-2.0 liblua5.1-dev luajit libluajit-5.1 python-dev python3-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev | |
# Optional: so vim can be uninstalled again via `dpkg -r vim` | |
sudo apt-get install checkinstall | |
# remove vim files | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
# go to home directory | |
cd ~ | |
git clone https://github.com/vim/vim | |
cd vim | |
git pull && git fetch | |
# in case Vim was already installed | |
cd src | |
make distclean | |
cd .. | |
# specify ruby, python, and python3 directory | |
./configure \ | |
--enable-multibyte \ | |
--enable-perlinterp=dynamic \ | |
--enable-rubyinterp=dynamic \ | |
--with-ruby-command=/home/$USER/.rbenv/shims/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.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="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