Commit: runtime(samba): include simple filetype plugin

3 views
Skip to first unread message

Christian Brabandt

unread,
Feb 13, 2025, 2:45:15 PM2/13/25
to vim...@googlegroups.com
runtime(samba): include simple filetype plugin

Commit: https://github.com/vim/vim/commit/407319fe89d5df2c732937474479803d67761879
Author: Matt Perry <ma...@mattperry.com>
Date: Thu Feb 13 20:39:40 2025 +0100

runtime(samba): include simple filetype plugin

closes: https://github.com/vim/vim/issues/16626

Signed-off-by: Matt Perry <ma...@mattperry.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/.github/MAINTAINERS b/.github/MAINTAINERS
index 9874dc7ac..9c576fbd1 100644
--- a/.github/MAINTAINERS
+++ b/.github/MAINTAINERS
@@ -267,6 +267,7 @@ runtime/ftplugin/routeros.vim @zainin
runtime/ftplugin/rst.vim @marshallward
runtime/ftplugin/ruby.vim @tpope @dkearns
runtime/ftplugin/rust.vim @lilyball
+runtime/ftplugin/samba.vim @mperry2
runtime/ftplugin/sass.vim @tpope
runtime/ftplugin/scala.vim @derekwyatt
runtime/ftplugin/scheme.vim @evhan
diff --git a/runtime/ftplugin/samba.vim b/runtime/ftplugin/samba.vim
new file mode 100644
index 000000000..1f4a26f75
--- /dev/null
+++ b/runtime/ftplugin/samba.vim
@@ -0,0 +1,14 @@
+" Vim filetype plugin
+" Language: smb.conf(5) configuration file
+" Maintainer: Matt Perry <ma...@mattperry.com>
+" 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<'
Reply all
Reply to author
Forward
0 new messages