如何在 Python 上获得实时自动完成,而不必在 Vim 中按 <ctrl-x> <ctrl-o>?

How can I get realtime auto-completion on Python instead of having to press <ctrl-x> <ctrl-o> in Vim?

目前,我在 Vim 运行 zsh shell 上有这些插件:

vim 也支持 Python 2 和 Python 3。

我希望 Vim 实时为每次击键自动完成,而不必按 <ctrl-x><ctrl-o>,这很麻烦。我怎样才能实现它?谢谢。

acp.vim plugin (formerly named AutoComplPop) automatically opens the completion popup as you type. With the .,w,b,k configuration, you can make it use different completion sources, like omni or dictionary completion. neocomplete显然也有这个功能。也许这也已经包含在 YouCompleteMe 中了。可能值得阅读它的文档。