vim中的python 2支持 [英] python 2 support in vim
问题描述
我正在尝试设置YouCompleteMe,这是vim的代码完成插件.当我运行vim时,它给我以下错误消息:"YouCompleteMe不可用:需要python 2.x".我在ubuntu机器上安装了正确版本的python,这使我感到困惑.经过一番研究,我发现我需要在 vim 中提供python2支持,而不仅仅是在我的系统上( https://github.com/Valloric/YouCompleteMe/issues/35 ).我怎样才能做到这一点?我在任何地方都找不到类似的答案.
I am trying to set up YouCompleteMe, a code-completion plugin for vim. When I run vim, it gives me this error message: "YouCompleteMe unavailable: requires python 2.x". I have the correct version of python installed on my ubuntu machine and this confused me. After some research, I have found that I needed python2 support in vim, not just on my system (https://github.com/Valloric/YouCompleteMe/issues/35). How can I do this? I was unable to find a similar answer anywhere.
提前感谢您的帮助!
推荐答案
如果需要GUI,请尝试aptitude install vim-nox
或aptitude install vim-gnome
. vim-python
是上述任何一个提供的虚拟软件包.
Try aptitude install vim-nox
or aptitude install vim-gnome
if you want the GUI. vim-python
is a virtual package provided by either of these.
默认情况下,Ubuntu已安装vim-tiny
,其中有一堆选项已关闭.
By default, Ubuntu has vim-tiny
installed, which has a bunch of the options switched off.
这篇关于vim中的python 2支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!