当前位置: 技术问答>linux和unix
gvim7.3支持python3的问题
来源: 互联网 发布时间:2017-01-24
本文导语: 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...
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???????????
可是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 也挺好用的。。。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。