Commit: runtime(defaults): Update comment for reverting C comment strings

2 views
Skip to first unread message

Christian Brabandt

unread,
Nov 28, 2025, 3:30:42 PM (13 days ago) Nov 28
to vim...@googlegroups.com
runtime(defaults): Update comment for reverting C comment strings

Commit: https://github.com/vim/vim/commit/bc1a82245c8228fb0a59e9a8977d2d7190c75dc6
Author: C.D. MacEachern <craig.danie...@gmail.com>
Date: Fri Nov 28 20:25:41 2025 +0000

runtime(defaults): Update comment for reverting C comment strings

Add `g:` prefix, so the example works in vim9script as well (errors
without it).

closes: #18827

Signed-off-by: Christian Brabandt <c...@256bit.org>
Signed-off-by: C.D. MacEachern <craig.danie...@gmail.com>

diff --git a/runtime/defaults.vim b/runtime/defaults.vim
index 5c7100edc..9306af3fb 100644
--- a/runtime/defaults.vim
+++ b/runtime/defaults.vim
@@ -1,7 +1,7 @@
" The default vimrc file.
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
-" Last Change: 2025 Sep 10
+" Last Change: 2025 Nov 28
" Former Maintainer: Bram Moolenaar <Br...@vim.org>
"
" This is loaded if no vimrc file was found.
@@ -136,7 +136,7 @@ if &t_Co > 2 || has("gui_running")
syntax on

" I like highlighting strings inside C comments.
- " Revert with ":unlet c_comment_strings".
+ " Revert with ":unlet g:c_comment_strings".
let c_comment_strings=1
endif

Reply all
Reply to author
Forward
0 new messages