diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | runtime/ftplugin/snakemake.vim | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 801a8f346d..a2daf144c7 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2243,6 +2243,9 @@ au BufNewFile,BufRead *.smt,*.smith setf smith " Smithy au BufNewFile,BufRead *.smithy setf smithy +" Snakemake +au BufNewFile,BufRead Snakefile,*.smk setf snakemake + " Snobol4 and spitbol au BufNewFile,BufRead *.sno,*.spt setf snobol4 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<' |