From 644114263deea86c543cdcaeb000103ef0a228d3 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 19 May 2023 19:39:18 +0200 Subject: [PATCH] Add filename snippet --- .vim/snips/pandoc.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vim/snips/pandoc.snippets b/.vim/snips/pandoc.snippets index 9c3ffef..bff8003 100644 --- a/.vim/snips/pandoc.snippets +++ b/.vim/snips/pandoc.snippets @@ -638,6 +638,10 @@ snippet sketch "Link a sketch" i [$1](file:///home/h/sketches/$2) endsnippet +snippet fn "Filename" +`!p snip.rv = snip.basename` +endsnippet + snippet ` "Inline code" i `$1`$2 endsnippet