Ⅰ. 插件描述
Launch a jira ticket in browser from vim.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'markabe/vim-jira-open'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'markabe/vim-jira-open'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'markabe/vim-jira-open'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/markabe/vim-jira-open
Ⅳ. 文档说明
#Jira ticket opener for Vim (Mac only)
Description
This plugin allows you to open a jira ticket directly from vim to a browser on a Mac. A jira ticket usually has a number that looks like XXX-1234. Just put your cursor on any of the characters then invoke the leader mapping. The default is <leader>jo.
Installation
This will work with vundle or pathogen.
Configuration
Add this to your .vimrc file with your correct jira domain name.
let g:jira_browse_url = 'https://yourjiradomain.com/browse/'
To create you own leader mapping add this to your .vimrc file as well. You can change 'oj' to whatever you want.
map <unique> <leader>oj :<C-U>call JiraOpen()<cr><cr>