Last active
December 27, 2015 00:19
-
-
Save kaimallea/7237388 to your computer and use it in GitHub Desktop.
Download, configure, make (compile) and install VIM from source
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
#!/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