From 9ba5d6b1926c04fe3808c84bbbe401d6251978cf Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 19 May 2023 19:38:51 +0200 Subject: [PATCH] Add codeblock snippets --- .vim/snips/pandoc.snippets | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.vim/snips/pandoc.snippets b/.vim/snips/pandoc.snippets index 8fb0976..9c3ffef 100644 --- a/.vim/snips/pandoc.snippets +++ b/.vim/snips/pandoc.snippets @@ -637,3 +637,19 @@ endsnippet snippet sketch "Link a sketch" i [$1](file:///home/h/sketches/$2) endsnippet + +snippet ` "Inline code" i +`$1`$2 +endsnippet + +snippet ``` "Code block" i +```${1:sh} +$2 +``` +endsnippet + +snippet tex "Latex block (see latex filter)" +```{.tex} +$1 +``` +endsnippet