Skip to content

Instantly share code, notes, and snippets.

@egel
Last active Jul 7, 2019
Embed
What would you like to do?
#!/bin/bash
_command=$1
AUTHOR="Maciej Sypień <maciejsypien@gmail.com>"
if [ -z "$_command" ]; then
printf "clear|install|uninstall\n"
exit 1
fi
if [ -d "/tmp/vim" ]; then
cd /tmp/vim && sudo make uninstall
fi
sudo apt-get update -y
sudo apt-get remove -y --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get install -y liblua5.1-dev luajit libluajit-5.1
sudo apt-get install -y python-dev python3-dev ruby-dev libperl-dev mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
cd /tmp || exit
rm vim/ -rf
git clone https://github.com/vim/vim.git
cd vim/
./configure --with-features=huge \
--enable-multibyte \
--enable-gui=auto \
--enable-gtk2-check \
--enable-gtk3-check \
--enable-gnome-check \
--enable-cscope \
--enable-largefile \
--enable-pythoninterp=dynamic --with-python-config-dir=$(python-config --configdir) \
--enable-python3interp=dynamic --with-python3-config-dir=$(python3-config --configdir) \
--enable-perlinterp \
--enable-rubyinterp=dynamic \
--enable-luainterp=dynamic \
--with-luajit \
--with-x \
--prefix=/usr \
--with-compiledby=${AUTHOR} \
--enable-fail-if-missing
make VIMRUNTIMEDIR=/usr/share/vim/vim81
sudo make "${_command}"
@egel
Copy link
Author

egel commented Feb 21, 2017

How to install?

cd /tmp
wget https://gist.githubusercontent.com/egel/74ecc84c8d6ccaf697f63e7202585ab1/raw/f31dd20da0b17a71967addf6ab6283f088ba13fa/vim_installer.sh -O vim_installer.sh 
chmod a+x vim_installer.sh
./vim_installer.sh install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment