Add filename snippets for all filetypes

master
Hektor Misplon 2023-05-20 21:13:25 +02:00
parent 671c8e5575
commit 832620344f
2 changed files with 7 additions and 4 deletions

7
.vim/snips/all.snippets Normal file
View File

@ -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

View File

@ -638,10 +638,6 @@ snippet sketch "Link a sketch" i
[$1](file:///home/h/sketches/$2) [$1](file:///home/h/sketches/$2)
endsnippet endsnippet
snippet fn "Filename"
`!p snip.rv = snip.basename`
endsnippet
snippet ` "Inline code" i snippet ` "Inline code" i
`$1`$2 `$1`$2
endsnippet endsnippet