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 thesee edit below.vim-nox
package (sudo apt install vim-nox
)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 thevim-nox
package anymore to get Python 3 support.