Skip to content

Instantly share code, notes, and snippets.

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 shaypal5/4522797c5971a48c628b56fe9b1b4b8e to your computer and use it in GitHub Desktop.
Save shaypal5/4522797c5971a48c628b56fe9b1b4b8e to your computer and use it in GitHub Desktop.
Install Vim 8 with Python, Python 3 support on Ubuntu 16.04
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common
sudo apt-get install build-essential cmake
sudo apt-get install python-dev python3-dev
#Optional: so vim can be uninstalled again via `dpkg -r vim`
sudo apt-get install checkinstall
sudo rm -rf /usr/local/share/vim /usr/bin/vim
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 ..
./configure \
--enable-multibyte \
--enable-pythoninterp=dynamic \
--with-python-config-dir=/usr/lib/python2.7/config-i386-linux-gnu \
--enable-python3interp \
--with-python3-config-dir=/usr/lib/python3.6/config-3.6m-i386-linux-gnu \
--enable-cscope \
--enable-gui=auto \
--with-features=huge \
--with-x \
--enable-fontset \
--enable-largefile \
--disable-netbeans \
--with-compiledby="nohope" \
--enable-fail-if-missing \
--prefix=/usr
make && sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment