0

我的 vim 配置在github.com/liuzheng712/config 你可以用这个步骤重新显示我的问题:

git clone https://github.com/liuzheng712/config.git --depth=1
cd config     
git submodule init     
git submodule update

然后你可以soft-link .vim and .vimrc到你的$HOME目录(请备份你自己的.vim和.vimrc文件)

完成所有操作后,当您执行此操作vim test.py以及input "ihello." 键入"."以下错误时

Error detected while processing function pythoncomplete#Complete:     
line   35:     
Traceback (most recent call last):    
Press ENTER or type command to continue
Error detected while processing function pythoncomplete#Complete:
line   35:
File "<string>", line 1, in <module>
Press ENTER or type command to continue
Error detected while processing function pythoncomplete#Complete:
line   35:
File "<string>", line 40, in vimcomplete
Press ENTER or type command to continue
Error detected while processing function pythoncomplete#Complete:
line   35:
File "<string>", line 221, in get_completions
Press ENTER or type command to continue
Error detected while processing function pythoncomplete#Complete:
line   35:
NameError: global name 're' is not defined
Press ENTER or type command to continue
Error detected while processing function pythoncomplete#Complete:
line   36:
E121: Undefined variable: g:pythoncomplete_completions
Press ENTER or type command to continue
Error detected while processing function pythoncomplete#Complete:
line   36:
E15: Invalid expression: g:pythoncomplete_completions

任何人都可以解决我的问题吗?谢谢

4

1 回答 1

2

使用jedi-vim而不是 pythoncomplete可能会更成功。Vim 的全能 Python 存在许多 jedi-vim 解决的错误。Pythoncomplete 可能已经开始解决其中的一些问题,但该项目似乎已被放弃。

于 2013-11-13T04:51:17.057 回答