runtime(doc): Add tags about lazyloading of menu (#14688)

Commit: 
https://github.com/vim/vim/commit/ca4b81a7ae9ed524c7097dda2638cf55f2672afc
Author: K.Takata <ken...@csc.jp>
Date:   Wed May 1 18:35:32 2024 +0900

    runtime(doc): Add tags about lazyloading of menu 
(https://github.com/vim/vim/issues/14688)
    
    Close https://github.com/vim/vim/issues/14672
    
    Also add the `g:` prefix.
    
    Signed-off-by: Ken Takata <ken...@csc.jp>
    Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt
index 3fda6e1ca..de33c9caa 100644
--- a/runtime/doc/gui.txt
+++ b/runtime/doc/gui.txt
@@ -1,4 +1,4 @@
-*gui.txt*       For Vim version 9.1.  Last change: 2024 Apr 17
+*gui.txt*       For Vim version 9.1.  Last change: 2024 May 01
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -498,14 +498,14 @@ Starting off with the default set is a good idea.  You 
can add more items, or,
 if you don't like the defaults at all, start with removing all menus
 |:unmenu-all|.  You can also avoid the default menus being loaded by adding
 this line to your .vimrc file (NOT your .gvimrc file!): >
-       :let did_install_default_menus = 1
+       :let g:did_install_default_menus = 1
 If you also want to avoid the Syntax menu: >
-       :let did_install_syntax_menu = 1
+       :let g:did_install_syntax_menu = 1
 The first item in the Syntax menu can be used to show all available filetypes
 in the menu (which can take a bit of time to load).  If you want to have all
 filetypes already present at startup, add: >
-       :let do_syntax_sel_menu = 1
-
+       :let g:do_syntax_sel_menu = 1
+<                                  *menu-lazyload* *g:do_no_lazyload_menus*
 The following menuitems show all available color schemes, keymaps and compiler
 settings:
        Edit > Color Scheme ~
@@ -515,7 +515,7 @@ However, they can also take a bit of time to load, because 
they search all
 related files from the directories in 'runtimepath'.  Therefore they are
 loaded lazily (by the |CursorHold| event), or you can also load them manually.
 If you want to have all these items already present at startup, add: >
-       :let do_no_lazyload_menus = 1
+       :let g:do_no_lazyload_menus = 1
 
 Note that the menu.vim is sourced when `:syntax on` or `:filetype on` is
 executed or after your .vimrc file is sourced.  This means that the 'encoding'

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1s26WX-008Szo-GJ%40256bit.org.

Raspunde prin e-mail lui