vim-open-github


Ⅰ. 插件描述

Quickly open your current buffer in GitHub.

Ⅱ. 基本信息

创建日期:  2014-11-13
使用用户:  18
Github星:  21
插件作者:  Takashi Kokubun

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-open-github

Quickly open your current buffer in GitHub.
This plugin is a forked version of vim-to-github with a support of flexible remote path, such as GitHub Enterprise.

Usage

Basic

:OpenGithub

Will load origin's url and open current buffer's file in GitHub.

Highlight lines

:'<,'>OpenGithub

Visual mode is supported.

Copy to pasteboard

:'<,'>CopyGithub

No need to copy browser's address bar.

Specify branch, tag or revision

:OpenGithub v4.2.3

You can specify the revision to open.

Installation

Example for neobundle.vim

NeoBundle 'k0kubun/vim-open-github'

Development

Run tests

$ bundle
$ rake

Embed Ruby code to vim script

$ rake embed

Thanks

License

MIT License

添加新评论