你用的时候,给出什么错误提示了么?如果有最好把相关的提示粘贴回过来,我们好判断是答什么问题。
另外如果要判断你的 vim 是否支持 python,可以执行如下脚本:
if has('python')
echo 'there is Python 2.x'
elseif has('python3')
echo 'there is Python 3.x'
endif
执行方法是复制上面的脚本,然后在 vim 里 :@+ 回车。
如果有输出,那么就说明有 python 支持。如果执行完了看上去像没反映就是不支持。
不支持的话,你可能需要考虑重新装一个支持 python 的 vim。同时你还需要安装并配置好 python。