From 8fe86059fb2a2d5c85aeb2a8787a9bcd8dd68602 Mon Sep 17 00:00:00 2001 From: tinyladi Date: Mon, 28 Apr 2014 12:36:54 +0200 Subject: [PATCH 1/3] create pandoc.snippets & extend markdown.snippets --- UltiSnips/pandoc.snippets | 1 + 1 file changed, 1 insertion(+) create mode 100644 UltiSnips/pandoc.snippets diff --git a/UltiSnips/pandoc.snippets b/UltiSnips/pandoc.snippets new file mode 100644 index 0000000..c94e534 --- /dev/null +++ b/UltiSnips/pandoc.snippets @@ -0,0 +1 @@ +extends markdown From a34551bdd9af52018a92279a40f6b9385c1109f9 Mon Sep 17 00:00:00 2001 From: tinyladi Date: Mon, 28 Apr 2014 12:48:59 +0200 Subject: [PATCH 2/3] add codeblock and inline code snippets to markdown.snippets --- UltiSnips/markdown.snippets | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/UltiSnips/markdown.snippets b/UltiSnips/markdown.snippets index fa708ab..046f6b7 100644 --- a/UltiSnips/markdown.snippets +++ b/UltiSnips/markdown.snippets @@ -39,4 +39,15 @@ snippet img "Image" ![${1:pic alt}](${2:path}${3/.+/ "/}${3:opt title}${3/.+/"/})$0 endsnippet +snippet ilc "Inline Code" +\`$1\`$0 +endsnippet + +snippet cbl "Codeblock" b +\`\`\` +$1 +\`\`\` +$0 +endsnippet + # vim:ft=snippets: From 1d5adc300faffd9672cf2d6fc3b4f37fb7ad5e18 Mon Sep 17 00:00:00 2001 From: tinyladi Date: Mon, 28 Apr 2014 14:40:10 +0200 Subject: [PATCH 3/3] add priority and inword option --- UltiSnips/markdown.snippets | 2 +- UltiSnips/pandoc.snippets | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/UltiSnips/markdown.snippets b/UltiSnips/markdown.snippets index 046f6b7..0720cbf 100644 --- a/UltiSnips/markdown.snippets +++ b/UltiSnips/markdown.snippets @@ -39,7 +39,7 @@ snippet img "Image" ![${1:pic alt}](${2:path}${3/.+/ "/}${3:opt title}${3/.+/"/})$0 endsnippet -snippet ilc "Inline Code" +snippet ilc "Inline Code" i \`$1\`$0 endsnippet diff --git a/UltiSnips/pandoc.snippets b/UltiSnips/pandoc.snippets index c94e534..157c9ef 100644 --- a/UltiSnips/pandoc.snippets +++ b/UltiSnips/pandoc.snippets @@ -1 +1,3 @@ +priority -49 + extends markdown