aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-02-14 19:53:41 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-02-14 19:53:54 +0800
commit92f0933abbac1bf0a080256a41b8de81987c7e62 (patch)
treecbc8df55cac988758b041002412091263b962574
parentf247402010d92aa4dc90cc979e33ea6e47f49ee6 (diff)
downloadrneovim-92f0933abbac1bf0a080256a41b8de81987c7e62.tar.gz
rneovim-92f0933abbac1bf0a080256a41b8de81987c7e62.tar.bz2
rneovim-92f0933abbac1bf0a080256a41b8de81987c7e62.zip
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 <matt@mattperry.com>
-rw-r--r--runtime/ftplugin/samba.vim14
1 files changed, 14 insertions, 0 deletions
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 <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<'