From 92f0933abbac1bf0a080256a41b8de81987c7e62 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 14 Feb 2025 19:53:41 +0800 Subject: [PATCH 1/2] vim-patch:407319f: runtime(samba): include simple filetype plugin closes: vim/vim#16626 https://github.com/vim/vim/commit/407319fe89d5df2c732937474479803d67761879 Co-authored-by: Matt Perry --- runtime/ftplugin/samba.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/ftplugin/samba.vim diff --git a/runtime/ftplugin/samba.vim b/runtime/ftplugin/samba.vim new file mode 100644 index 0000000000..1f4a26f75c --- /dev/null +++ b/runtime/ftplugin/samba.vim @@ -0,0 +1,14 @@ +" Vim filetype plugin +" Language: smb.conf(5) configuration file +" Maintainer: Matt Perry +" Last Change: 2025 Feb 13 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setlocal comments=:;,:# commentstring=#\ %s +setlocal formatoptions-=t formatoptions+=croql + +let b:undo_ftplugin = 'setl com< cms< fo<' From 565152a2ac9906933053176e344c3bae62472089 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 14 Feb 2025 19:54:07 +0800 Subject: [PATCH 2/2] vim-patch:d7deeff: runtime(exports): include simple filetype plugin closes: vim/vim#16625 https://github.com/vim/vim/commit/d7deeffe11f4db3cce19236ddb80831652a87e83 Co-authored-by: Matt Perry --- runtime/ftplugin/exports.vim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 runtime/ftplugin/exports.vim diff --git a/runtime/ftplugin/exports.vim b/runtime/ftplugin/exports.vim new file mode 100644 index 0000000000..92688a4392 --- /dev/null +++ b/runtime/ftplugin/exports.vim @@ -0,0 +1,14 @@ +" Vim filetype plugin +" Language: exports(5) configuration file +" Maintainer: Matt Perry +" Last Change: 2025 Feb 13 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setlocal comments=:# commentstring=#\ %s +setlocal formatoptions-=t formatoptions+=croql + +let b:undo_ftplugin = 'setl com< cms< fo<'