Ⅰ. 插件描述
Display the github.com URL of the current lineⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jtai/vim-githublink'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jtai/vim-githublink'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jtai/vim-githublink'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jtai/vim-githublink
Ⅳ. 文档说明
# githublink.vim
This vim plugin allows you to type \ g in command mode to display the github.com URL of the current line.
If pbcopy is available, the URL will also be copied to the clipboard.
Installation
Option 1: Manual installation
Clone the repository.
$ git clone https://github.com/jtai/vim-githublink.gitMove
githublink.vimto your.vim/pluginsdirectory.$ cd vim-githublink/plugins $ mv githublink.vim ~/.vim/plugins/
Option 2: Pathogen installation (recommended)
- Download and install Tim Pope's Pathogen.
Clone the repository in the pathogen plugins directory.
$ cd ~/.vim/bundle $ git clone https://github.com/jtai/vim-githublink.git