Ⅰ. 插件描述
Redmine operation from vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'toritori0318/vim-redmine'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'toritori0318/vim-redmine'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'toritori0318/vim-redmine'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/toritori0318/vim-redmine
Ⅳ. 文档说明
Introduction
You can look over the information on redmine with vim.
Function
- Display ticket and display outline of ticket on Redmine with vim.
- It is possible to jump to URL of the ticket.
Requirement
- webapi.vim
- Redmine version >= 1.0.x
- enable Redmine REST API
installation
- Install webapi.vim
- edit ~/.vimrc
- g:redmine_auth_site = 'http://localhost:3000'
let g:redmine_auth_key = 'secret'
let g:redmine_author_id = '5'
let g:redmine_project_id = '1'
Command
- RedmineViewTicket <issue_id>
a ticket is displayed. - RedmineViewAllTicket
All tickets are displayed. - RedmineViewAssignedTicket
Assigned ticket is displayed. (required g:redmine_author_id) - RedmineViewAssignedProjectTicket
Assigned ticket is displayed. (required g:redmine_author_id)
You can also specify Project_id.
- RedmineViewMyTicket
Report ticket is displayed. (required g:redmine_author_id) - RedmineViewMyProjectTicket
Report ticket is displayed. (required g:redmine_author_id)
You can also specify Project_id.
- RedmineSearchTicket <condition>
Search tickets. - RedmineSearchProject <condition>
Search project. - RedmineEditTicket <issue_id> <edit_text>
Edit Ticket. - RedmineAddTicket <subject>
Add Ticket. - RedmineAddTicketWithDiscription <subject>
Add Ticket with discription.
Global Variable
- redmine_auth_site
Redmine URL - redmine_auth_key
Redmine API Key - redmine_browser
Launch browser - redmine_author_id
Assigned_id used in RedmineViewMyTicket/RedmineViewMyProjectTicket. - redmine_project_id
used in RedmineViewMyProjectTicket.
This is not required. "MyProject" will be retrieved automatically if you don't specify project_id.
- redmine_project_id_remember
If this variable is 1, remember projectId when add ticket.
This is not required, default value is 1.
- redmine_temporary_dir
Set temp directory.
This is not required, default value is $HOME/.redmine-vim/
ChangeLog
2012-06-24 by kawaken
- add RedmineViewAssignedTicket and RedmineViewAssignedProjectTicket
2012-05-06 by vsushkov
- fix support new webapi
2012-02-19 by kakkyz (@kakkyz81)
- fix multibyte character problem
- Add RedmineAddTicket and RedmineAddTicketWithDiscription