From c0a8a7cee99894fd24144cf44f3498e6b50b9958 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 5 Jun 2019 20:32:49 +0200 Subject: Add 'jira-text-formatting-notation-help' plugin Plugin that opens a window containing the text formatting guide for Jira. The guide is taken from: $ w3m -dump 'https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all' Since I'm using the go-jira CLI, I need the reference for any special formatting I want to use. I figured it would help to have that information right next to my Vim buffer instead of having to switch to a browser and open the web page. --- .../autoload/jira_text_formatting_notation_help.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bundle/jira-text-formatting-notation-help/autoload/jira_text_formatting_notation_help.vim (limited to 'bundle/jira-text-formatting-notation-help/autoload/jira_text_formatting_notation_help.vim') diff --git a/bundle/jira-text-formatting-notation-help/autoload/jira_text_formatting_notation_help.vim b/bundle/jira-text-formatting-notation-help/autoload/jira_text_formatting_notation_help.vim new file mode 100644 index 0000000..5ab8668 --- /dev/null +++ b/bundle/jira-text-formatting-notation-help/autoload/jira_text_formatting_notation_help.vim @@ -0,0 +1,12 @@ +let s:script_path = resolve(expand(':p:h')) + + +function! jira_text_formatting_notation_help#Open() + execute 'botright vsplit ' . + \ s:script_path . + \ '/Jira Text Formatting Notation Help.txt' + setlocal nomodified nomodifiable noswapfile readonly + setlocal nolist + setlocal nobuflisted buftype=nofile bufhidden=wipe + wincmd p +endfunction -- cgit v1.2.3