在vim中编辑python文件并在插入模式下按Ctrl+x
,然后按Ctrl+o
,结果是
Error: Required vim compiled with +python
E117: Unbekannte Funktion: pythoncomplete#Complete
我读了很多帖子,做了很多摸索,直到现在:
:vers
返回。。。+python/dyn
和{:vers
-DDYNAMIC_PYTHON3_DLL=\"python35.dll\"
中提到的python35.dll
文件与{_vimrc
let g:pymode_python = 'python3'
中,应该将vim告诉用户python3:echo has ('python3')
返回1但错误仍然存在。。。除了键盘前面的错误,你知道吗?在
更新2016-11-08:
这不是个好办法,但它解决了我的问题。我变了
setlocal omnifunc=pythoncomplete#Complete
到
setlocal omnifunc=python3complete#Complete
在ftplugin-folder
的python.vim
文件中。现在一切正常。在不修改Python.vim文件?在
更新2016-11-08:
最后在我的vimrc中用autocmd BufNewFile *.py :set omnifunc=python3complete#Complete
解决了这个问题
这是你编译的Vim吗?
vers
结果看起来是正确的。错误E117
是特定于使用vim的eval
特性调用函数的。在但是,
let g:pymode_python = 'python3
变量用于特定的“python模式”插件。在python3
库是否在您的搜索路径中?python
和{enable-shared
编译的吗?是要回答的问题。在
不确定vim是否首先搜索它自己的可执行文件夹,但是要检查它,可以执行以下操作:
在文档中可能有更深入的了解:doc/if_pyth.html#python-dynamic
高温
相关问题 更多 >
编程相关推荐