-
-
Save sirkkalap/1a9d954122039ab6f78f to your computer and use it in GitHub Desktop.
install vim 7.3 on centos, debian, arch etc.
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 | |
# Install VIM with LUA support on centos minimal (tested 2016-01-21 on CentOS 7) | |
# source <(curl -sSL https://gist.githubusercontent.com/sirkkalap/1a9d954122039ab6f78f/raw/vim_centos.sh) | |
# bailout on errors | |
set -e | |
sudo yum -y groupinstall 'Development tools' | |
sudo yum -y install ncurses-devel | |
sudo yum -y install python python-devel | |
sudo yum -y install perl perl-devel | |
sudo yum install -y ruby ruby-devel lua lua-devel luajit \ | |
luajit-devel ctags git python python-devel \ | |
tcl-devel \ | |
perl perl-devel perl-ExtUtils-ParseXS \ | |
perl-ExtUtils-CBuilder \ | |
perl-ExtUtils-Embed | |
# symlink xsubpp (perl) from /usr/bin to the perl dir - https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source | |
sudo ln -sf /usr/bin/xsubpp /usr/share/perl5/ExtUtils/xsubpp | |
# vim7.3 | |
if [ -e vim ]; then | |
cd vim | |
git pull | |
else | |
git clone https://github.com/vim/vim.git | |
cd vim | |
fi | |
./configure --disable-selinux \ | |
--enable-luainterp \ | |
--enable-perlinterp \ | |
--enable-pythoninterp \ | |
--enable-python3interp \ | |
--enable-tclinterp \ | |
--enable-rubyinterp \ | |
--enable-multibyte \ | |
--disable-gui \ | |
--with-features=huge \ | |
--with-modified-by=sirpete@iki.fi | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment