Skip to content

Instantly share code, notes, and snippets.

@adonis0147
Last active January 5, 2022 11:48
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adonis0147/5844126 to your computer and use it in GitHub Desktop.
Save adonis0147/5844126 to your computer and use it in GitHub Desktop.
Compile Vim from source.
#!/bin/bash
sudo dpkg -P vim vim-runtime vim-common vim-tiny
sudo apt-get install libncurses5-dev libperl-dev python-dev ruby-dev mercurial checkinstall lua5.2 liblua5.2-dev
sudo ln -s /usr/include/lua5.2/ /usr/include/lua
proxychains hg clone https://code.google.com/p/vim/
cd vim
./configure --prefix=/opt/vim \
--enable-gui=no \
--with-features=huge \
--enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-luainterp \
--enable-cscope
make
sudo checkinstall
echo "vim hold" | sudo dpkg --set-selections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment