Ⅰ. 插件描述
vim plugin to use github-tmbundle magicⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'solars/github-vim-fearless'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'solars/github-vim-fearless'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'solars/github-vim-fearless'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/solars/github-vim
Ⅳ. 文档说明
github.vim
=
http://github.com/solars/github_vim/
I tried to remove the dependency on drnics github-tmbundle scripts in this branch,
please report any errors and feel free to correct/suggest/add.
Description
This is a quick and dirty vim plugin to use some github features locally from vim.
It enables you to:
- open a link to the corresponding github file of a local vim selection
- add a comment to the corresponding github commit of a locally selected line
- yank a link to the corresponding github file of a local vim selection into the system clipboard
Suggested installation
The file structure should be clear, just copy the github.vim into ~/.vim/plugin/
Installing when using Pathogen
cd ~/.vim/bundle
git clone git@github.com:solars/github-vim.git
Usage
- Comment Commit: on the relevant line Press 'ghc' in normal mode
- Open Selection: create a selection in visual mode and press 'gho'
- Yank Selection: create a selection in visual mode and press 'ghy'
To remap the keybinding in your ~/.vimrc use:
- map <F5> <Plug>GithubOpen
- map <F6> <Plug>GithubComment
Notes
Since this is my first vim plugins, feel free to send corrections or improvements :)
sol@textmode.at