Ⅰ. 插件描述
Quickly open your current buffer in GitHub.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用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
:OpenGithubWill load origin's url and open current buffer's file in GitHub.
Highlight lines
:'<,'>OpenGithubVisual mode is supported.
Copy to pasteboard
:'<,'>CopyGithubNo need to copy browser's address bar.
Specify branch, tag or revision
:OpenGithub v4.2.3You can specify the revision to open.
Installation
Example for neobundle.vim
NeoBundle 'k0kubun/vim-open-github'Development
Run tests
$ bundle
$ rakeEmbed Ruby code to vim script
$ rake embedThanks
- To tonchis/vim-to-github for original version
License
MIT License