Snippets

Michael O'Neill Build and install Vim from source

Created by Michael O'Neill
#!/bin/bash

# Build
./configure --with-features=big \
	--enable-gui \
	--enable-perlinterp=yes \
	--enable-pythoninterp=yes \
	--with-python-config-dir=/usr/lib64/python2.7/config/ \
	--enable-python3interp=yes \
	--with-python3-config-dir=/usr/lib64/python3.5/config-3.5m/

# Install?
if make; then
	read -p "Successfully built. Install? [Y/n] " -n 1 ans && echo
	[[ "${ans^^}" == "Y" ]] && {
		sudo make install || (echo "Install failed." && exit 1)
	}
fi

exit 0

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.