我正在尝试在Vim 7.3中获得Python代码自动完成功能。当我安装Vim时,我使用以下配置:
./configure --prefix=${HOME}/vim73 --enable-python3interp=yes --with-python3-config-dir=/home/etobkru/Python3/lib/python3.1/config
make && make install
我拷贝了这个文件:http://vim.cybermirror.org/runtime/autoload/python3complete.vim
将它放到
~/vim73/share/vim/vim73/autoload/
目录中,并修改了./share/vim/vim73/ftplugin/python.vim
文件。setlocal omnifunc=pythoncomplete#Complete
为了
setlocal omnifunc=python3complete#Complete.
但是当我按下
<c-x, c-o>
时,我收到一个错误消息:Error: Required vim compiled with +python3
E117: Unknown function: python3complete#Complete
如果我写:python3
,则会得到以下结果:
E319: Sorry, the command is not available in this version