首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

gvim7.3支持python3的有关问题

2012-02-29 
gvim7.3支持python3的问题7.3加入py3 interface, py3命令可以使用.可是omni补全时报错error: required vim

gvim7.3支持python3的问题
7.3加入py3 interface, py3命令可以使用.
可是omni补全时报错error: required vim compiled with +python.
help里说:
7. Python 3*python3*

*:py3* *:python3*
The |:py3| and |:python3| commands work similar to |:python|.
 *:py3file*
The |:py3file| command works similar to |:pyfile|.

Vim can be built in four ways (:version output):
1. No Python support (-python, -python3)
2. Python 2 support only (+python or +python/dyn, -python3)
3. Python 3 support only (-python, +python3 or +python3/dyn)
4. Python 2 and 3 support (+python/dyn, +python3/dyn)

You can see that when Python 2 and Python 3 are both supported they must be
loaded dynamically. This may cause some problems though, therefore currently
inside a Vim executable you can only use Python 2 or Python 3. To switch to
the other one you need to restart Vim.

version命令也确实显示同时存在+python/dyn +python3/dyn, 看来是冲突了.
但是怎么"restart Vim"它也没说, 难道是重编译下只支持+python3/dyn???????????

[解决办法]
感觉 ipython 也挺好用的。。。

热点排行