aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-03-20 20:13:20 +0100
committerChristian Clason <c.clason@uni-graz.at>2024-03-20 22:01:40 +0100
commitcfc9fcc91f780022e5e9397626ac6ab5cde91d62 (patch)
tree303914a049b2162bc9d5036000cfe810c736dd5e
parentc72d877c3374796a1e4b71481503225d59a9afc7 (diff)
downloadrneovim-cfc9fcc91f780022e5e9397626ac6ab5cde91d62.tar.gz
rneovim-cfc9fcc91f780022e5e9397626ac6ab5cde91d62.tar.bz2
rneovim-cfc9fcc91f780022e5e9397626ac6ab5cde91d62.zip
vim-patch:2708c0b5854f
runtime(deb822sources): Add minimal ftplugin (vim/vim#14240) Set comment related options and avoid automatic line wrapping. https://github.com/vim/vim/commit/2708c0b5854faad2844454324431a593c1d2987a Co-authored-by: James McCoy <jamessan@jamessan.com>
-rw-r--r--runtime/ftplugin/deb822sources.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/ftplugin/deb822sources.vim b/runtime/ftplugin/deb822sources.vim
new file mode 100644
index 0000000000..4936f42bf9
--- /dev/null
+++ b/runtime/ftplugin/deb822sources.vim
@@ -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<'