% wget https://gist.github.com/ivellios/004b1352d0bb8405111358b9fdb29f99/raw/update_vim_debian.sh -O - | bash
-
-
Save ivellios/004b1352d0bb8405111358b9fdb29f99 to your computer and use it in GitHub Desktop.
Download and Compile and Install latest Vim on Debian
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
#!/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