Skip to content

Instantly share code, notes, and snippets.

@kaimallea
Last active December 27, 2015 00:19
Show Gist options
  • Save kaimallea/7237388 to your computer and use it in GitHub Desktop.
Save kaimallea/7237388 to your computer and use it in GitHub Desktop.
Download, configure, make (compile) and install VIM from source
#!/bin/bash
PYTHON_VERSION=2.7
# Dependencies
sudo apt-get update
sudo apt-get install mercurial python$PYTHON_VERSION-dev libperl-dev ruby-dev libncurses5-dev
# Clone vim repo; this takes some time
hg clone https://code.google.com/p/vim/
cd vim
# Configure VIM
# See what 'huge' includes:
# http://www.drchip.org/astronaut/vim/vimfeat.html
./configure \
--with-features=huge \
--enable-perlinterp \
--enable-rubyinterp \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python$PYTHON_VERSION/config
# Build and install
# Will ask for sudo pw
make && sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment