Skip to content

Instantly share code, notes, and snippets.

@Pompeu
Forked from rodtreweek/vim_8_build
Created August 28, 2018 11:39
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Pompeu/c711b6e35f3ae5deb5e81a938c3cc507 to your computer and use it in GitHub Desktop.
Save Pompeu/c711b6e35f3ae5deb5e81a938c3cc507 to your computer and use it in GitHub Desktop.
Building Vim 8 from source.
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 <rtreweek@gmail.com>" \
# 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 <rtreweek@gmail.com>" \
--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