]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(hgcommit): set comments and commentstring options in filetype plugin
authorRiley Bruins <ribru17@hotmail.com>
Wed, 18 Jun 2025 16:47:57 +0000 (18:47 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 18 Jun 2025 16:47:57 +0000 (18:47 +0200)
closes: #17480

Signed-off-by: Riley Bruins <ribru17@hotmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/hgcommit.vim

index d5a6c0a383f1c66deb26cf091d4260a05bf2470c..1bbb6faaae3ca4d4640a1dba4f83f2bdd4f70e15 100644 (file)
@@ -1,10 +1,11 @@
 " Vim filetype plugin file
 " Language:    hg (Mercurial) commit file
 " Maintainer:  Ken Takata <kentkt at csc dot jp>
-" Last Change: 2016 Jan 6
+" Last Change: 2025 Jun 8
 " Filenames:   hg-editor-*.txt
 " License:     VIM License
 " URL:         https://github.com/k-takata/hg-vim
+" 2025 Jun 18 by Vim Project: update commentstring option (#17480)
 
 if exists("b:did_ftplugin")
   finish
@@ -13,4 +14,7 @@ let b:did_ftplugin = 1
 
 setlocal nomodeline
 
-let b:undo_ftplugin = 'setl modeline<'
+setlocal comments=:HG\:
+setlocal commentstring=HG:\ %s
+
+let b:undo_ftplugin = 'setl modeline< com< cms<'