Skip to content

Instantly share code, notes, and snippets.

@ivellios
Forked from lambdalisue/README.md
Last active January 19, 2023 12:41
Show Gist options
  • Save ivellios/004b1352d0bb8405111358b9fdb29f99 to your computer and use it in GitHub Desktop.
Save ivellios/004b1352d0bb8405111358b9fdb29f99 to your computer and use it in GitHub Desktop.
Download and Compile and Install latest Vim on Debian

How to use this gist to update Vim from sources

% wget https://gist.github.com/ivellios/004b1352d0bb8405111358b9fdb29f99/raw/update_vim_debian.sh -O - | bash
#!/usr/bin/env bash
echo "Install required packages ..."
sudo apt-get install -y libncurses-dev make gcc
echo "Remove installed vim ..."
sudo apt-get remove -y vim vim-runtime gvim vim-tiny vim-common vim-gui-common
wget -O vim.tar.gz http://github.com/vim/vim/archive/master.tar.gz
tar -xzf vim.tar.gz
cd vim-master/src
./configure
make
make install
ln -s /usr/local/bin/vim /usr/bin/vim
# cleanup
cd ../..
rm -f vim.tar.gz
rm -rf vim-master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment