From 8b92af645c18a5a1a9d493ef2ee89422b2923ca3 Mon Sep 17 00:00:00 2001 From: Riley Bruins Date: Wed, 18 Jun 2025 18:47:57 +0200 Subject: [PATCH] runtime(hgcommit): set comments and commentstring options in filetype plugin closes: #17480 Signed-off-by: Riley Bruins Signed-off-by: Christian Brabandt --- runtime/ftplugin/hgcommit.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/runtime/ftplugin/hgcommit.vim b/runtime/ftplugin/hgcommit.vim index d5a6c0a383..1bbb6faaae 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 -" 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<' -- 2.47.2