Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vim+;“赛车手产品”;“错误”;E117:未知功能:racer“RacerComplete”;_Vim_Rust - Fatal编程技术网

Vim+;“赛车手产品”;“错误”;E117:未知功能:racer“RacerComplete”;

Vim+;“赛车手产品”;“错误”;E117:未知功能:racer“RacerComplete”;,vim,rust,Vim,Rust,我想让vim自动完成防锈处理。因此,我在全球范围内安装了racer,并通过运行rustup组件add rust src获得了锈迹的来源 我在.vim/bundle/rust\u racer/plugin/rust\u racer.vim中有插件,从vim racerplugin repo的ftplugin文件夹下载 最后,在vimrc中,我有: set runtimepath^=~/.vim/bundle/rust_racer " Set rust autocompletion tool "r

我想让vim自动完成防锈处理。因此,我在全球范围内安装了racer,并通过运行
rustup组件add rust src
获得了锈迹的来源

我在
.vim/bundle/rust\u racer/plugin/rust\u racer.vim
中有插件,从
vim racer
plugin repo的ftplugin文件夹下载

最后,在vimrc中,我有:

set runtimepath^=~/.vim/bundle/rust_racer

" Set rust autocompletion tool "racer" ..
set hidden
let g:racer_cmd = "/home/petar/.cargo/bin/racer"
let $RUST_SRC_PATH="/home/petar/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src"
但是,当我打开一个rs文件并尝试Ctrl+x+Ctrl+o以获得自动完成时,我会出现以下错误:

Error "E117: Unknown function: racer#RacerComplete

有什么想法吗?

显然,我不得不将vim文件从repo的autoload文件夹下载到plugin文件夹中的autoload文件夹中(在我的例子中是.vim/bundle/rust_racer/autoload),现在它可以工作了


(不知道为什么他们没有在
自述文件中写这篇文章)

你安装了整个插件吗?听起来你缺少一个自动加载的文件。