runtime(help): Unset `'comments'` and `'cms'` options
Commit:
https://github.com/vim/vim/commit/adfea9b4e68f39744fcb6ce7840e1c3c3b4637db
Author: Phạm Bình An <[email protected]>
Date: Fri Aug 8 10:44:18 2025 +0200
runtime(help): Unset `'comments'` and `'cms'` options
Problem: Vim's help file doesn't have any syntax for comments, but
'comments' and 'commentstring' are still set in the help
buffer.
Solution: Unset 'comments' and 'cms' in help buffer
closes: #17889
Signed-off-by: Phạm Bình An <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/help.vim b/runtime/ftplugin/help.vim
index 0109c1752..e8651b5d5 100644
--- a/runtime/ftplugin/help.vim
+++ b/runtime/ftplugin/help.vim
@@ -3,6 +3,7 @@
" Previous Maintainer: Nikolai Weibull <[email protected]>
" Last Change: 2025 Apr 08
" 2025 Apr 08 by Vim project (set 'omnifunc' and 'iskeyword', #17073)
+" 2025 Aug 08 by Vim project (unset comment options, #17889)
if exists("b:did_ftplugin")
finish
@@ -12,7 +13,9 @@ let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
-let b:undo_ftplugin = "setl isk< fo< tw< cole< cocu< keywordprg< omnifunc<"
+let b:undo_ftplugin = "setl isk< fo< tw< cole< cocu< keywordprg< omnifunc<
comments< cms<"
+
+setl comments= cms=
setlocal formatoptions+=tcroql textwidth=78 keywordprg=:help
omnifunc=s:HelpComplete
let &l:iskeyword='!-~,^*,^|,^",192-255'
--
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1ukIxN-0027ff-2E%40256bit.org.