Ⅰ. 插件描述
Show selected text in Vim on GithubⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'prakashdanish/vim-githubinator'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'prakashdanish/vim-githubinator'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'prakashdanish/vim-githubinator'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/prakashdanish/vim-githubinator
Ⅳ. 文档说明
<h1 align="center">vim-githubinator</h1>
<p align="center">Quickly show selected text in vim on Github if a remote exists.</p>
<p align="center">
</p>
What?
This plugin helps you select some text in vim visually and then open it in Github or other remote repository with the selection highlighted.
This was inspired from Githubinator for sublime.
Default commands
gho
Open selected text on git remote repository with the default
browser using the `open` or `xdg-open` command if it is present,
throws an error otherwise.
ghc
Same as gho except it doesn't open the
browser but rather copies the said URL to the clipboard using
pbcopy if it is present, throws an error otherwise.Installation
Using vim-zen:
Plugin 'danishprakash/vim-githubinator'Contributing
Do you want to make this better? Open an issue and/or a PR on Github. Thanks!
License
MIT License
Copyright (c) 2018 Danish Prakash