]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(dockerfile): set comments in filetype plugin
authorDavid Mandelberg <david@mandelberg.org>
Sat, 22 Feb 2025 14:09:03 +0000 (15:09 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 22 Feb 2025 14:09:03 +0000 (15:09 +0100)
closes: #16698

Signed-off-by: David Mandelberg <david@mandelberg.org>
Signed-off-by: Honza Pokorny <honza@redhat.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/dockerfile.vim

index e45bf4c1d8600e3678654f01e93cacdf33d6a02c..f9268fe89b5fc5cafe3bf89ce6d5088c4e33d2f1 100644 (file)
@@ -1,7 +1,7 @@
 " Vim filetype plugin
 " Language:    Dockerfile
 " Maintainer:   Honza Pokorny <http://honza.ca>
-" Last Change: 2024 Dec 20
+" Last Change: 2025 Feb 21
 
 " Only do this when not done yet for this buffer
 if exists("b:did_ftplugin")
@@ -11,6 +11,7 @@ endif
 " Don't load another plugin for this buffer
 let b:did_ftplugin = 1
 
+setlocal comments=:#
 setlocal commentstring=#\ %s
 
-let b:undo_ftplugin = "setl commentstring<"
+let b:undo_ftplugin = "setl comments< commentstring<"