Created
July 23, 2017 01:43
-
-
Save utgwkk/d1e71f7cd71b0432721f941580b023f9 to your computer and use it in GitHub Desktop.
Vim install script
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 | |
set -e | |
PREFIX=/usr/local | |
SRC=$PREFIX/src | |
VIMDIR=$SRC/vim | |
PROC=`nproc` | |
CONFIGURE_OPTIONS="--prefix=$PREFIX --with-features=huge --enable-fail-if-missing \ | |
--enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-luainterp --enable-terminal" | |
if [ -d $VIMDIR ]; then | |
cd $VIMDIR | |
git checkout -- . | |
git pull | |
make clean | |
else | |
git clone https://github.com/vim/vim.git $VIMDIR | |
cd $VIMDIR | |
fi | |
./configure $CONFIGURE_OPTIONS | |
make -j$PROC | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment