Skip to content

Instantly share code, notes, and snippets.

@utgwkk
Created July 23, 2017 01:43
Show Gist options
  • Save utgwkk/d1e71f7cd71b0432721f941580b023f9 to your computer and use it in GitHub Desktop.
Save utgwkk/d1e71f7cd71b0432721f941580b023f9 to your computer and use it in GitHub Desktop.
Vim install script
#!/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