Skip to content

Instantly share code, notes, and snippets.

@lambdalisue
Last active October 7, 2023 12:27
Show Gist options
  • Save lambdalisue/5911291 to your computer and use it in GitHub Desktop.
Save lambdalisue/5911291 to your computer and use it in GitHub Desktop.
Download and Compile and Install latest Vim on Debian

How to use this gist to install Vim

% wget https://gist.github.com/lambdalisue/5911291/raw/install_vim_debian.sh -O - | bash
#!/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
hg clone https://code.google.com/p/vim/
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