Ⅰ. 插件描述
vim-metarwを利用してgithub-issueを読み書きするプラグインⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'joker1007/vim-metarw-github-issues'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'joker1007/vim-metarw-github-issues'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'joker1007/vim-metarw-github-issues'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/joker1007/vim-metarw-github-issues
Ⅳ. 文档说明
# vim-metarw-github-issue
vim-metarwを利用してgithub-issueを読み書きするプラグイン
Requirements
- vim-metarw
- webapi-vim
- curl
Format
1行目がタイトル
2行目がラベル
4行目以降が本文のmarkdown
Usage
Write vimrc
let g:github_user='joker1007'
let g:github_token='xxxxxx' " API経由で取得しておく
" Optional
let g:github_per_page=50 " Max 100Post current buffer as new item
:write issues:repos/:owner/:repoCaution: Not modify comment separator, otherwise post issue body with comments
Open a issue
:edit issues:repos/:owner/:repo/issues/:numberUpdate current open issue
:writeCaution: Not modify comment separator, otherwise post issue body with comments
Post new comment to current open issue
Open comment buffer
:IssueCommentPostand save
:writeCaution: Existing issue buffer is not refreshed. Refresh Manually.
Get issues for repository
:edit issues:repos/:owner/:repoGet issues for organization
:edit issues:orgs/:org?filter=allOpen by browser
:IssueBrowse