Ubuntu – Ubuntu 16.04 VIM without python support!

16.04aptpythonpython3vim

Although Ubuntu 16.04 release notes mention that:

The default VIM package has been built against python3 instead of python2.

Yet after I installed vim with the following command:

sudo apt-get install vim

And checked:

vim --version

It showed:

-python
-python3

Is it a bug? How do I get vim with Python support?

Best Answer

If you want Python 3 support in vim, install the vim-nox package (sudo apt install vim-nox) see edit below.

However, if you still need Python 2 support, install the vim-nox-py2 package (sudo apt install vim-nox-py2).

Edit: vim was recently updated to fix this issue, and you should not need to install the vim-nox package anymore to get Python 3 support.

Related Question