From 832620344f7acdf4adf26b323881611566bdc80e Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sat, 20 May 2023 21:13:25 +0200 Subject: [PATCH] Add filename snippets for all filetypes --- .vim/snips/all.snippets | 7 +++++++ .vim/snips/pandoc.snippets | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .vim/snips/all.snippets diff --git a/.vim/snips/all.snippets b/.vim/snips/all.snippets new file mode 100644 index 0000000..294afec --- /dev/null +++ b/.vim/snips/all.snippets @@ -0,0 +1,7 @@ +snippet fne "Filename (+extension)" i +`!p snip.rv = snip.fn` +endsnippet + +snippet fn "Filename basename" i +`!p snip.rv = snip.basename` +endsnippet diff --git a/.vim/snips/pandoc.snippets b/.vim/snips/pandoc.snippets index bff8003..9c3ffef 100644 --- a/.vim/snips/pandoc.snippets +++ b/.vim/snips/pandoc.snippets @@ -638,10 +638,6 @@ 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