aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/jira-text-formatting-notation-help/autoload/jira_text_formatting_notation_help.vim
diff options
context:
space:
mode:
authorTeddy Wing2019-06-05 20:32:49 +0200
committerTeddy Wing2019-06-05 20:32:49 +0200
commitc0a8a7cee99894fd24144cf44f3498e6b50b9958 (patch)
treeab40596f451622d1dab588ea7cf1c9073d800cd1 /bundle/jira-text-formatting-notation-help/autoload/jira_text_formatting_notation_help.vim
parent0254acfd71877910ce19ec3404cd8e25c1b13e6b (diff)
downloaddotvim-c0a8a7cee99894fd24144cf44f3498e6b50b9958.tar.bz2
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.
Diffstat (limited to 'bundle/jira-text-formatting-notation-help/autoload/jira_text_formatting_notation_help.vim')
-rw-r--r--bundle/jira-text-formatting-notation-help/autoload/jira_text_formatting_notation_help.vim12
1 files changed, 12 insertions, 0 deletions
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('<sfile>: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