]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(samba): include simple filetype plugin
authorMatt Perry <matt@mattperry.com>
Thu, 13 Feb 2025 19:39:40 +0000 (20:39 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 13 Feb 2025 19:42:43 +0000 (20:42 +0100)
closes: #16626

Signed-off-by: Matt Perry <matt@mattperry.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/MAINTAINERS
runtime/ftplugin/samba.vim [new file with mode: 0644]

index 9874dc7ac2a4f0ccaaa2067788deb9e5f8bf1dd5..9c576fbd1f252e8045f865d65af5a93562a7a344 100644 (file)
@@ -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 (file)
index 0000000..1f4a26f
--- /dev/null
@@ -0,0 +1,14 @@
+" Vim filetype plugin
+" Language:     smb.conf(5) configuration file
+" Maintainer:  Matt Perry <matt@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<'