summaryrefslogtreecommitdiffstats
path: root/runtime/ftplugin/snakemake.vim
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-06-14 20:47:05 +0200
committerChristian Brabandt <cb@256bit.org>2024-06-14 20:47:05 +0200
commit82a579e15ad78f4b99d2957300da3076ccc7d378 (patch)
tree1f2928968d22d03c07c38a7ada649eef06bc3886 /runtime/ftplugin/snakemake.vim
parent17e702a51a28162e82310d8a864a97fa8f977b92 (diff)
patch 9.1.0486: filetype: Snakemake files are not recognizedv9.1.0486
Problem: filetype: Snakemake files are not recognized Solution: Detect '*.smk' and Snakefile files as snakemake filetype (Riley Bruins) See: https://snakemake.readthedocs.io/en/stable/snakefiles/deployment.html#distribution-and-reproducibility closes: #14992 Co-authored-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Riley Bruins <ribru17@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/ftplugin/snakemake.vim')
-rw-r--r--runtime/ftplugin/snakemake.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/ftplugin/snakemake.vim b/runtime/ftplugin/snakemake.vim
new file mode 100644
index 0000000000..ab90ca10b5
--- /dev/null
+++ b/runtime/ftplugin/snakemake.vim
@@ -0,0 +1,13 @@
+" Vim filetype plugin
+" Language: snakemake
+" Maintainer: Riley Bruins <ribru17@gmail.com>
+" Last Change: 2024 Jun 13
+
+if exists('b:did_ftplugin')
+ finish
+endif
+let b:did_ftplugin = 1
+
+setl comments=:# commentstring=#\ %s
+
+let b:undo_ftplugin = 'setl com< cms<'