Skip to content

Instantly share code, notes, and snippets.

@rendon
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rendon/9160204 to your computer and use it in GitHub Desktop.
Save rendon/9160204 to your computer and use it in GitHub Desktop.
Instructions to compile Vim 7.4 in Debian with GUI support.
#!/bin/bash
./configure --with-x --with-features=huge --enable-rubyinterp \
--enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config \
--enable-gui=gtk2 --enable-cscope --prefix=/usr --enable-gtk2-check
make VIMRUNTIMEDIR=/usr/share/vim/vim74
sudo make install
#Set vim as your default editor with update-alternatives.
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
sudo update-alternatives --set editor /usr/bin/vim
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
sudo update-alternatives --set vi /usr/bin/vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment