Last active
January 1, 2016 08:39
-
-
Save notmii/8119955 to your computer and use it in GitHub Desktop.
Installing vim from source
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
#!/bin/bash | |
curl https://gist.githubusercontent.com/notmii/8211765/raw/1440ac89f3ddd1af40381203e35b2b6a645a1baf/install-lua | sh | |
sudo apt-get install --yes checkinstall auto-apt mercurial | |
hg clone https://vim.googlecode.com/hg/ vim-source | |
cd vim-source && hg pull && hg update | |
sudo apt-get remove --purge vim \ | |
vim-runtime \ | |
gvim vim-tiny \ | |
vim-common \ | |
vim-gui-common | |
sudo apt-get build-dep vim-gtk | |
sudo apt-get install python2.7-dev libncurses5-dev \ | |
libreadline-dev libgnome2-dev libgtk2.0-dev \ | |
libatk1.0-dev libbonoboui2-dev libcairo2-dev \ | |
libx11-dev libxpm-dev libxt-dev | |
sudo auto-apt run ./configure \ | |
--with-compiledby=notmii \ | |
--enable-sniff \ | |
--enable-multibyte \ | |
--enable-fontset \ | |
--with-features=huge \ | |
--enable-luainterp=yes \ | |
--with-lua-prefix=/usr/local \ | |
--enable-rubyinterp \ | |
--enable-pythoninterp \ | |
--with-python-config-dir=/usr/lib/python2.7/config \ | |
--enable-perlinterp \ | |
--enable-gui=gnome2 \ | |
--enable-gtk2-check \ | |
--with-x \ | |
--enable-cscope \ | |
--prefix=/usr/local \ | |
&& sudo make VIMRUNTIMEDIR=/usr/local/share/vim/vim74 \ | |
&& sudo checkinstall \ | |
&& sudo update-alternatives --install /usr/bin/editor editor /usr/local/bin/vim 1 \ | |
&& sudo update-alternatives --set editor /usr/local/bin/vim \ | |
&& sudo update-alternatives --install /usr/bin/vi vi /usr/local/bin/vim 1 \ | |
&& sudo update-alternatives --set vi /usr/local/bin/vim | |
vim --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment