Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'google/vim-codereview-he-is-going'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'google/vim-codereview-he-is-going'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'google/vim-codereview-he-is-going'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/google/vim-codereview
Ⅳ. 文档说明
codereview is a plugin for interfacing with ongoing code reviews.
In this initial release, it only supports GitHub and only supports listing open
pull requests, but it will ultimately support viewing line comments inline in
vim and updating them straight from vim, and support additional code review
platforms such as Gerrit and Phabricator Differential.
For details, see the executable documentation in the vroom/ directory or the
helpfiles in the doc/ directory. The helpfiles are also available via:help codereview if codereview is installed (and helptags have been
generated).
DISCLAIMER: This is not an official Google product.
Commands
Use :CodeReview {remoterepo} to view pull requests / pending changes between
local and remote repo.
Usage example
:CodeReview github:google/vim-maktabaViewing changes relative to remote github:google/vim-maktaba
Pulls:
#60: Add maktaba#plugin#Register that never touches runtimepathInstallation
This example uses Vundle, whose
plugin-adding command is Plugin.
" Add maktaba and codereview to the runtimepath.
" (The latter must be installed before it can be used.)
Plugin 'google/vim-maktaba'
Plugin 'google/vim-codereview'