Skip to content

Instantly share code, notes, and snippets.

@mostlygeek
Last active August 29, 2015 13:58
Show Gist options
  • Save mostlygeek/10342842 to your computer and use it in GitHub Desktop.
Save mostlygeek/10342842 to your computer and use it in GitHub Desktop.
install-vim73-centos
#!/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