我已经设置了 Vim,+python
(:version
说没关系)。我的.vimrc
包含
filetype plugin on
set ofu=syntaxcomplete#Complete
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
When some .py
file is open, and I type i.e. pri
and press Ctrl-X, Ctrl-O, it says no pattern was found? Am I missing something? Can I somehow rebuild Vim's Python keyword database?
而不是syntaxcomplete#Complete
, use pythoncomplete#Complete
:
# ~/.vim/ftplugin/python.vim
setlocal omnifunc=pythoncomplete#Complete
# Or by autocmd
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)