Last active
July 7, 2019 19:32
-
-
Save egel/74ecc84c8d6ccaf697f63e7202585ab1 to your computer and use it in GitHub Desktop.
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/bash | |
_command=$1 | |
AUTHOR="Maciej Sypień <[email protected]>" | |
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}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to install?