]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(defaults): Update comment for reverting C comment strings
authorC.D. MacEachern <craig.daniel.maceachern@gmail.com>
Fri, 28 Nov 2025 20:25:41 +0000 (20:25 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 28 Nov 2025 20:25:41 +0000 (20:25 +0000)
Add `g:` prefix, so the example works in vim9script as well (errors
without it).

closes: #18827

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: C.D. MacEachern <craig.daniel.maceachern@gmail.com>
runtime/defaults.vim

index 5c7100edc2a980b0b72963f3f0d6636eca6bd81b..9306af3fbb6bdab251e939889ed6bcde453c5329 100644 (file)
@@ -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 <Bram@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