Last active
August 28, 2018 11:39
-
-
Save rodtreweek/585b1140225c6652ad6085a09da042b6 to your computer and use it in GitHub Desktop.
Building Vim 8 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
1. | |
sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev python3-dev ruby-dev lua5.1 lua5.1-dev libperl-dev git | |
2. | |
sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common vim-nox | |
3. | |
cd ~ | |
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --with-features=huge \ | |
--enable-multibyte \ | |
--enable-rubyinterp=yes \ | |
--enable-pythoninterp=yes \ | |
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \ | |
--enable-python3interp=yes \ | |
--with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu \ | |
--enable-perlinterp=yes \ | |
--enable-luainterp=yes \ | |
--enable-gui=gtk2 \ | |
--enable-cscope \ | |
--prefix=/usr/local | |
--with-compiledby="Rod Treweek <[email protected]>" \ | |
# Or this: | |
./configure \ | |
--enable-perlinterp=dynamic \ | |
--enable-pythoninterp \ | |
--enable-rubyinterp \ | |
--enable-luainterp=dynamic \ | |
--enable-cscope \ | |
--enable-gui=auto \ | |
--enable-gtk2-check \ | |
--enable-gnome-check \ | |
--enable-multibyte \ | |
--enable-fontset \ | |
--with-features=huge \ | |
--with-x \ | |
--with-ruby-command=/usr/bin/ruby \ | |
--with-compiledby="Rod Treweek <[email protected]>" \ | |
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \ | |
4. | |
make VIMRUNTIMEDIR=/usr/local/share/vim/vim80 | |
5. | |
cd ~/vim | |
sudo make install | |
6. | |
sudo update-alternatives --install /usr/bin/editor editor /usr/local/bin/vim 1 | |
sudo update-alternatives --set editor /usr/bin/vim 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment