Ⅰ. 插件描述
A vim plugin to create github links.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'baroldgene/vim-github-links'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'baroldgene/vim-github-links'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'baroldgene/vim-github-links'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/baroldgene/vim-github-links
Ⅳ. 文档说明
vim-github-links
A vim plugin to create github links.
Purpose
This allows you to add a hotkey that will create a github link for you to the branch, file, and line number of the file you're currently editing. It puts this link on your clipboard for easy sharing.
Installation
I recommend vundle, in your ~/.vimrc:
Bundle 'baroldgene/vim-github-links'and then you can :PluginInstall
Use
Once installed you can use the default hotkey of <leader>gl when editing a file. This craft a github link to the branch, file, and line and put it on your clipboard. It will also be echoed for you to see.

Feedback
Please feel free to give any and all feedback or pull requests.