diff options
author | Teddy Wing | 2020-02-09 04:37:21 +0100 |
---|---|---|
committer | Teddy Wing | 2020-02-12 05:09:54 +0100 |
commit | e734f1a9d9c4650c84e652ea40e0b54e371ce8ba (patch) | |
tree | a99110171d8b51222424eccf6e1f0534e92ce57f /projects/aodocs.vim | |
parent | f540f2d90c1f972903ad011e9376dff529ff90ee (diff) | |
download | dotvim-e734f1a9d9c4650c84e652ea40e0b54e371ce8ba.tar.bz2 |
projects/aodocs.vim: Add `JiraOpen` command
A command that opens the Jira ticket ID cWORD in the browser.
Diffstat (limited to 'projects/aodocs.vim')
-rw-r--r-- | projects/aodocs.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/projects/aodocs.vim b/projects/aodocs.vim index ce4fcc8..1d4cf29 100644 --- a/projects/aodocs.vim +++ b/projects/aodocs.vim @@ -28,6 +28,12 @@ augroup AODocs \,$VIM_PROJECT_PATH_AODOCS/*/.git/{COMMIT_EDIT,MERGE_,TAG_EDIT}MSG \ call s:CommitWackoTextWidthMappings() \ | call s:CommitWackoTextWidth() + + " Open Jira ticket ID in the browser + autocmd BufRead,BufEnter + \ $VIM_PROJECT_PATH_AODOCS_GO/* + \,$VIM_PROJECT_PATH_AODOCS/* + \ command! JiraOpen :call system('jira-open ' . expand('<cWORD>')) augroup END " Insert a path to UFO ticket folders |