gv


Ⅰ. 插件描述

Gerrit Vim plugin

Ⅱ. 基本信息

创建日期:  2014-03-03
使用用户:  2
Github星:  4
插件作者:  Sidharth

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'itissid/gv'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'itissid/gv'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'itissid/gv'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/itissid/gv

Ⅳ. 文档说明

gv

Gerrit Vim plugin.
PS: Bottom of the readme for how much work is done.

Why it exists. A great way to learn VIM scripting and building plugins.

This plugin is meant to do a few simple things as a part of its first draft:

1) Pull the list of your changes(reviews you own) from gerrit code review

2) Select a specific change and look at the latest patch set

3) Display a selected file in the patch set along with a quick fix window.
The quick fix window will show all the abbreviated comments(140 chars) and selecting a comment
will inline it with the file's contents with highlighting.

Later versions may allow one to see diffs and other things.

TODOs
1) Figure out new Oauthing stuff in gerrit. ATM you have to SSH Tunnel to access the REST API.
2) Add a virtualenv from klen/pymode for requests package in the Venv.
3) Organize the code a bit more

添加新评论