10

I've been using vim for some time, and now in a need to use the python3 feature.

If I type vim --version | grep python I get -python3

How can I do to enable it?

1
  • 4
    IMO this can done only on the time of compiling vim. Commented Apr 4, 2013 at 2:25

2 Answers 2

4
$sudo apt-get install vim-gnome

should take care of that but the official repos are a bit behind.

I've been using this ppa for a while. After you have added it to your sources, upgrading Vim should give you python 3 support. It does, here.

Sign up to request clarification or add additional context in comments.

Comments

3

You didn't tell us the platform you're on, but it basically boils down to:

  • Installing the prerequisite packages needed for Python 3 and for compiling Vim
  • Compile Vim with the configure --enable-python3interp option

2 Comments

Hi Ingo, you're right, I didn't specified that directly, but in the tags I put ubuntu. Thanks anyway, as I've been reading, I'd say this is the only way.
Slight correction, ./configure --enable-python3interp. The user should be able to know how to install from source, but explicitness is nice for lazy people. :)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.