vim-github-comment


Ⅰ. 插件描述

Comment commits on GitHub using Vim

Ⅱ. 基本信息

创建日期:  2013-05-11
使用用户:  14
Github星:  161
插件作者:  Mindaugas Mozūras

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'mmozuras/vim-github-comment'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'mmozuras/vim-github-comment'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'mmozuras/vim-github-comment'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-github-comment

Want to comment commits on [GitHub] straight from [Vim]? You can now. After installation, from inside vim, just run :GHComment <your-comment-here>. This will create a comment on the commit that changed that line last.

vim-github-comment demo

Installation

I use [pathogen], but you can install [vim-github-comment] using your favorite way too. Short instructions to use with pathogen follow.

Inside your .vim directory, run:

git clone git://github.com/mmozuras/vim-github-comment.git bundle/vim-github-comment

vim-github-comment requires [webapi], so if you don't have it in your bundle yet:

git clone git://github.com/mattn/webapi-vim.git bundle/webapi

Setup

If you don't have github.user set in your .gitconfig, add the following
into your ~/.vimrc

let g:github_user = '<your-github-username-here>'

Optionally, browser can be opened with your comment after you post it:

let g:github_comment_open_browser = 1

You can always run help to get more information about vim-github-comment:

:help github-comment

添加新评论