Last active
August 29, 2015 13:58
-
-
Save mostlygeek/10342842 to your computer and use it in GitHub Desktop.
install-vim73-centos
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
#!/bin/sh | |
# credit: http://sudoers-d.com/blog/2013/01/18/installing-vim-on-centos-6-dot-3/ | |
# | |
# Install (for the brave/trusting): | |
# > curl -L http://j.mp/vim73centos | sh | |
# | |
# This will install vim 73 into $HOME/bin so update your path to | |
# be: PATH=$HOME/bin:$PATH to make sure the right version of | |
# vim is used each time! | |
# | |
cd ~ | |
sudo yum install -y ruby perl-devel python-devel ruby-devel perl-ExtUtils-Embed ncurses-devel | |
sudo yum groupinstall -y 'Development Tools' | |
if [ ! -e vim-7.3.tar.bz2 ]; then | |
curl -O ftp://ftp.ca.vim.org/pub/vim/unix/vim-7.3.tar.bz2 | |
fi | |
if [ ! -d vim73 ]; then | |
tar jxvf vim-7.3.tar.bz2 | |
fi | |
cd vim73 | |
./configure \ | |
--prefix=$HOME \ | |
--with-features=huge \ | |
--enable-perlinterp \ | |
--enable-rubyinterp \ | |
--enable-pythoninterp | |
make | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment