Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vitapluvia/vim-gurl'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vitapluvia/vim-gurl'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vitapluvia/vim-gurl'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vitapluvia/vim-gurl
Ⅳ. 文档说明
__ __
/_/\___\ /\_\ /_/\ /_/\__/\ /\_\
) ) ___/( ( ( ) ) )) ) ) ) )( ( (
/_/ / ___\ \ \/ / //_/ /_/_/ \ \_\
\ \ \_/\__\\ \ / / \ \ \ \ \ / / /__
)_) \/ _/( (__) ) )_) ) \ \( (_____(
\_\____/ \/__\/ \_\/ \_\/ \/_____/
vim-gurl v1.0
Description:
vim-gurl provides links to remote git repos based on single lines or selections.
Example:
Basic Usage:
- Default mapping is set to: <leader> t
Customization:
To customize mapping, place a mapping in your .vimrc after the plugin has been called, such as:
<leader>gr :call Gurl()<CR>
To use the vim clipboard instead of pbcopy, you can specify a clipboard register:
g:vimgurl_yank_register = '"'
Requirements:
- git
- pbcopy (optional)
Install:
- Install with your favourite installation method:
#### Pathogen:
cd ~/.vim/bundle
git clone git://github.com/vitapluvia/vim-gurl.git
#### VimPlug:
Plug 'vitapluvia/vim-gurl'
#### Vundle:
Plugin 'vitapluvia/vim-gurl'
#### NeoBundle:
NeoBundle 'vitapluvia/vim-gurl'