% wget https://gist.github.com/lambdalisue/5911291/raw/install_vim_debian.sh -O - | bash
-
-
Save Injac/159d911c87286ed9c63958ceb55c5cf8 to your computer and use it in GitHub Desktop.
Download and Compile and Install latest Vim on Debian
This file contains 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
#!/usr/bin/env bash | |
echo "Install required packages ..." | |
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev \ | |
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev \ | |
libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial | |
echo "Remove installed vim ..." | |
sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common | |
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --with-features=huge \ | |
--disable-darwin \ | |
--disable-selinux \ | |
--enable-luainterp \ | |
--enable-perlinterp \ | |
--enable-pythoninterp \ | |
--enable-python3interp \ | |
--enable-tclinterp \ | |
--enable-rubyinterp \ | |
--enable-cscope \ | |
--enable-multibyte \ | |
--enable-xim \ | |
--enable-fontset \ | |
--enable-gui=gnome2 | |
make | |
sudo apt-get install checkinstall | |
sudo checkinstall | |
cat > ~/.local/share/application/gvim.desktop <<EOF | |
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Name=GVim | |
Version=7.3 | |
GenericName=Editor | |
Comment=Graphical version of Vim | |
Terminal=false | |
Icon=gvim | |
Type=Application | |
Exec=gvim %U | |
TryExec=gvim | |
Categories=Programming; System Utilities | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment