Created
October 29, 2019 19:41
-
-
Save joshperry/3a8caf0f0e4b2636250888f8028484d6 to your computer and use it in GitHub Desktop.
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
# Clean from standard vim | |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
# Vim dependency | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev libperl-dev libncurses5-dev ruby-dev | |
# if you want gVim add also this | |
sudo apt-get install libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
# Clean and prepare folders | |
sudo rm -rf /usr/local/share/vim | |
sudo rm /usr/bin/vim | |
sudo mkdir /usr/include/lua5.1/include | |
# Download it and compile | |
cd /usr/local/src/ | |
git clone https://github.com/vim/vim | |
cd vim/src | |
make distclean | |
./configure --with-features=huge \ | |
--enable-rubyinterp \ | |
--with-ruby-command=$(which ruby) \ | |
--enable-largefile \ | |
--disable-netbeans \ | |
--enable-pythoninterp \ | |
--with-python-config-dir=/usr/lib/python2.7/config \ | |
--enable-perlinterp \ | |
--enable-luainterp \ | |
--with-luajit \ | |
--enable-gui=auto \ | |
--enable-fail-if-missing \ | |
--with-lua-prefix=/usr/include/lua5.1 \ | |
--enable-cscope | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment