Skip to content

Commit adfea9b

Browse files
brianhusterchrisbra
authored andcommitted
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]>
1 parent 6a6a44f commit adfea9b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runtime/ftplugin/help.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
" Previous Maintainer: Nikolai Weibull <[email protected]>
44
" Last Change: 2025 Apr 08
55
" 2025 Apr 08 by Vim project (set 'omnifunc' and 'iskeyword', #17073)
6+
" 2025 Aug 08 by Vim project (unset comment options, #17889)
67

78
if exists("b:did_ftplugin")
89
finish
@@ -12,7 +13,9 @@ let b:did_ftplugin = 1
1213
let s:cpo_save = &cpo
1314
set cpo&vim
1415

15-
let b:undo_ftplugin = "setl isk< fo< tw< cole< cocu< keywordprg< omnifunc<"
16+
let b:undo_ftplugin = "setl isk< fo< tw< cole< cocu< keywordprg< omnifunc< comments< cms<"
17+
18+
setl comments= cms=
1619

1720
setlocal formatoptions+=tcroql textwidth=78 keywordprg=:help omnifunc=s:HelpComplete
1821
let &l:iskeyword='!-~,^*,^|,^",192-255'

0 commit comments

Comments
 (0)