From bc1a82245c8228fb0a59e9a8977d2d7190c75dc6 Mon Sep 17 00:00:00 2001 From: "C.D. MacEachern" Date: Fri, 28 Nov 2025 20:25:41 +0000 Subject: [PATCH] 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 Signed-off-by: C.D. MacEachern --- runtime/defaults.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/defaults.vim b/runtime/defaults.vim index 5c7100edc2..9306af3fbb 100644 --- a/runtime/defaults.vim +++ b/runtime/defaults.vim @@ -1,7 +1,7 @@ " The default vimrc file. " " Maintainer: The Vim Project -" Last Change: 2025 Sep 10 +" Last Change: 2025 Nov 28 " Former Maintainer: Bram Moolenaar " " 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 -- 2.47.3