]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(deb822sources): Add minimal ftplugin (#14240)
authorJames McCoy <jamessan@jamessan.com>
Wed, 20 Mar 2024 18:55:05 +0000 (14:55 -0400)
committerGitHub <noreply@github.com>
Wed, 20 Mar 2024 18:55:05 +0000 (19:55 +0100)
Set comment related options and avoid automatic line wrapping.

Signed-off-by: James McCoy <jamessan@jamessan.com>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/CODEOWNERS
runtime/ftplugin/deb822sources.vim [new file with mode: 0644]

index 73b676aacc0e5db79efe6cf595aa52c7c1340acc..f8ea87ec1f575675d66dbaa960c04e7f02ae441a 100644 (file)
@@ -115,6 +115,7 @@ runtime/ftplugin/cs.vim                     @nickspoons
 runtime/ftplugin/csh.vim               @dkearns
 runtime/ftplugin/css.vim               @dkearns
 runtime/ftplugin/cucumber.vim          @tpope
+runtime/ftplugin/deb822sources.vim     @jamessan
 runtime/ftplugin/debchangelog.vim      @jamessan
 runtime/ftplugin/debcontrol.vim                @jamessan
 runtime/ftplugin/debsources.vim                @jamessan
diff --git a/runtime/ftplugin/deb822sources.vim b/runtime/ftplugin/deb822sources.vim
new file mode 100644 (file)
index 0000000..4936f42
--- /dev/null
@@ -0,0 +1,16 @@
+" Language:     Debian sources.list
+" Maintainer:   Debian Vim Maintainers <team+vim@tracker.debian.org>
+" Last Change:  2024 Mar 20
+" License:      Vim License
+" URL:          https://salsa.debian.org/vim-team/vim-debian/blob/main/ftplugin/deb822sources.vim
+
+if exists('b:did_ftplugin')
+  finish
+endif
+let b:did_ftplugin=1
+
+setlocal comments=:#
+setlocal commentstring=#%s
+setlocal formatoptions-=t
+
+let b:undo_ftplugin = 'setlocal comments< commentstring< formatoptions<'