Skip to content

Instantly share code, notes, and snippets.

@meyt
Last active April 8, 2018 05:48
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 meyt/1646abca98189b3ac529b278748490d6 to your computer and use it in GitHub Desktop.
Save meyt/1646abca98189b3ac529b278748490d6 to your computer and use it in GitHub Desktop.
Compiling latest vim on debian 9 + python 2.7, 3.5

Install

0 - Prepare

# apt 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 checkinstall

# apt remove vim vim-runtime gvim

1 - Get source

$ cd ~

$ git clone https://github.com/vim/vim.git

$ cd vim

2 - Configure

$ ./configure \                                         
--enable-multibyte \
--enable-perlinterp=dynamic \
--enable-rubyinterp=dynamic \
--with-ruby-command=/usr/local/bin/ruby \
--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-luainterp \
--with-luajit \
--enable-cscope \
--enable-gui=auto \
--with-features=huge \
--with-x \
--enable-fontset \
--enable-largefile \
--disable-netbeans \
--with-compiledby="yourname" \
--enable-fail-if-missing

$ make VIMRUNTIMEDIR=/usr/local/share/vim/vim80

3 - Install

# checkinstall

Uninstall

# dpkg -r vim

Check version

▶ vim --version | grep python
+comments          +libcall           +python/dyn        +vreplace
+conceal           +linebreak         +python3/dyn       +wildignore

Resources

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