runtime(hgcommit): set comments and commentstring options in filetype plugin
Commit: https://github.com/vim/vim/commit/8b92af645c18a5a1a9d493ef2ee89422b2923ca3 Author: Riley Bruins <ribr...@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 <ribr...@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<' -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1uRw8q-006M9W-5t%40256bit.org.