Skip to content

Instantly share code, notes, and snippets.

@pavlov99
Last active May 10, 2017 09:47
Show Gist options
  • Save pavlov99/0b12ff41a7061aeb2dec to your computer and use it in GitHub Desktop.
Save pavlov99/0b12ff41a7061aeb2dec to your computer and use it in GitHub Desktop.
vim configuration with python2
./configure \
--enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-luainterp \
--enable-fail-if-missing \
--enable-cscope \
--enable-gui=auto \
--enable-gtk2-check \
--enable-gnome-check \
--with-features=huge \
--enable-multibyte \
--with-compiledby="Kirill Pavlov <k@p99.io>" \
--prefix=/usr \
--with-luajit \
--with-lua-prefix=/usr/local
# In order to use YouCompleteMe, one required to compile vim with python2.
sudo apt-get install \
liblua5.1-dev \
luajit \
libluajit-5.1 \
python-dev \
ruby-dev \
libperl-dev \
libncurses5-dev
sudo mkdir /usr/include/lua5.1/include
sudo mv /usr/include/lua5.1/*.h /usr/include/lua5.1/include/
./configure \
--enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-luainterp \
--enable-fail-if-missing \
--with-luajit \
--with-lua-prefix=/usr/include/lua5.1 \
--enable-cscope \
--enable-gui=auto \
--enable-gtk2-check \
--enable-gnome-check \
--with-features=huge \
--enable-multibyte \
--with-compiledby="Kirill Pavlov <kirill.pavlov@phystech.edu>" \
--with-python-config-dir="/usr/lib/python2.7/config-"$(uname -m)"-linux-gnu" \
--prefix=/usr
make
sudo make install
pyversion=$(python3 -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
./configure \
--enable-perlinterp \
--enable-python3interp \
--enable-rubyinterp \
--enable-cscope \
--enable-gui=auto \
--enable-gtk2-check \
--enable-gnome-check \
--with-features=huge \
--enable-multibyte \
--with-compiledby="Kirill Pavlov <kirill.pavlov@phystech.edu>" \
--with-python3-config-dir="/usr/lib/python"$pyversion"/config-"$pyversion"m-"$(uname -m)"-linux-gnu" \
--prefix=/usr
@pavlov99
Copy link
Author

apt-get install ncurses-dev python3-dev ruby ruby-dev

GUI support

apt-get install libx11-dev libxt-dev libgtk2.0-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment