Ⅰ. 插件描述
Rust Cargo command bindingsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'timonv/vim-cargo'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'timonv/vim-cargo'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'timonv/vim-cargo'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/timonv/vim-cargo
Ⅳ. 文档说明
# Vim Cargo
Simple vim command bindings to quickly run cargo stuff from vim.
Commands Available, mapping with their Cargo equivalant:
- CargoBench
- CargoBuild
- CargoClean
- CargoDoc
- CargoNew
- CargoRun
- CargoTest
- CargoUpdate
Installation
It's recommended to use a plugin manager to manage your vim plugins. A few examples:
Vundle
Plugin 'timonv/vim-cargo'
Plug
Plug 'timonv/vim-cargo'
NeoBundle
NeoBundle 'timonv/vim-cargo'
Usage
Simply run one of the commands. By default it just delegates to cargo.
You can overwrite g:cargo_command to, for instance, support dispatch:
let g:cargo_command = "Dispatch cargo {cmd}"
Contribute
- Fork
- Code
- Test
- Pull-request