You are not logged in.

#1 2014-08-19 01:43:01

waynew
Member
Registered: 2012-05-20
Posts: 44

How do I install a version of vim with Python support?

I'm trying to install a version of vim with Python support, but for some reason I can't seem to find anything useful when I search.

So far I've found posts that say arch doesn't have one built with Python support, and use this <broken link> AUR package. I've search AUR for "vim python" which turned up nothing. There *does* exist extra/gvim-python3, but when I install that, then vim (not gvim) still tells me "Error: Required vim compiled with +python"

This search:
https://duckduckgo.com/?t=lm&q=arch+lin … on+support

Provides:
https://bbs.archlinux.org/viewtopic.php … 1#p1070281 - Only a link to a bug report
https://bbs.archlinux.org/viewtopic.php … 0#p1144210 - Post with the 404'd AUR link


What I finally found was this Gist with directions on using the ABS:
https://gist.github.com/MicahElliott/3048622

Ultimately you'll have to change the particular tar.xz files you use in the pacman -U steps, but this should get you vim with Python enabled.

Offline

#2 2014-08-19 01:49:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How do I install a version of vim with Python support?

https://wiki.archlinux.org/index.php/Abs

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-08-19 03:53:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How do I install a version of vim with Python support?

There's https://www.archlinux.org/packages/test … m-python3/ in [testing].


Edit: gvim-python3 provides /usr/bin/vim. When did you get the error you're talking about? What command did you run?
It's compiled with -python and +python3.

Last edited by karol (2014-08-19 04:01:04)

Offline

#4 2014-08-20 01:07:30

r00tr4t
Member
Registered: 2013-01-16
Posts: 101

Re: How do I install a version of vim with Python support?

I have downloaded vim by cloning The Vim Mercurial repository.

hg clone https://vim.googlecode.com/hg/ ~/bin/vim_bin

Then i have a this script to install it in my own ~/bin/ dir.

#!/bin/bash

cd /home/myuser/bin/vim_bin/src 
echo "---Configure----"
./configure --prefix=/usr --localstatedir=/var/lib/vim \
	  --with-features=big --with-compiledby="Custom Vim insall" \
	  --enable-gpm --enable-acl --with-x=no \
	  --disable-gui --enable-multibyte --enable-cscope \
	  --enable-netbeans --enable-perlinterp \
	  --enable-rubyinterp --enable-luainterp \
	  --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config \
	  --enable-python3interp --with-python3-config-dir=/usr/lib/python3.4/config > my_log

echo "=== Make ==="
make >> my_log

echo "==== Install ===="
make install >> my_log

Hope it helps some one smile

Offline

#5 2014-08-20 01:12:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How do I install a version of vim with Python support?

Installing software behind pacman's back is not something your should be encouraging in Newbie Corner; it is more likely to cause pain than relief...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB