Ⅰ. 插件描述
rust code completion in vim via racer (https://github.com/phildawes/racer)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ebfe/vim-racer'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ebfe/vim-racer'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ebfe/vim-racer'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ebfe/vim-racer
Ⅳ. 文档说明
vim-racer
Rust code completion in vim via racer
Installation
When using vim-pathogen simply clone
this repository to ~/vim/bundle
git clone https://github.com/ebfe/vim-racer ~/.vim/bundle
Otherwise copy autoload
and ftplugin
to ~/.vim.
Setup
- vim-racer expects to find the
racer
binary in$PATH
. - For racer to work correctly
$RUST_SRC_PATH
needs to be set. See [racer
installation] (https://github.com/phildawes/racer#installation) for more
information.
Usage
CTRL-X CTRL-O
in insert mode triggers code completion.gd
Jumps to the definition of the symbol under the cursor.