Commit: runtime(hgcommit): set comments and commentstring options in filetype plugin

1 view
Skip to first unread message

Christian Brabandt

unread,
Jun 18, 2025, 1:00:13 PM6/18/25
to vim...@googlegroups.com
runtime(hgcommit): set comments and commentstring options in filetype plugin

Commit: https://github.com/vim/vim/commit/8b92af645c18a5a1a9d493ef2ee89422b2923ca3
Author: Riley Bruins <rib...@hotmail.com>
Date: Wed Jun 18 18:47:57 2025 +0200

runtime(hgcommit): set comments and commentstring options in filetype plugin

closes: https://github.com/vim/vim/issues/17480

Signed-off-by: Riley Bruins <rib...@hotmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/ftplugin/hgcommit.vim b/runtime/ftplugin/hgcommit.vim
index d5a6c0a38..1bbb6faaa 100644
--- a/runtime/ftplugin/hgcommit.vim
+++ b/runtime/ftplugin/hgcommit.vim
@@ -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<'
Reply all
Reply to author
Forward
0 new messages