Hi,
:menu listing sometimes contains items with an "s" in the first column.
Here is an example which can be seen after sourcing the standard menu.vim:
:menu Edit.Select\ All--- Menus ---
400 &Select All^IggVG
n&s :<C-U>call <SNR>11_SelectAll()<CR>
v&s :<C-U>call <SNR>11_SelectAll()<CR>
s&s :<C-U>call <SNR>11_SelectAll()<CR>
o&s :<C-U>call <SNR>11_SelectAll()<CR>
The thing is I can't seem to find an explanation for the "s" in the docs.
Neither in gui.txt nor elsewhere. But according to the code in
show_menus_recursive() in menu.c, "s" means a menu defined with "<silent>".
So I suggest the following patch to add that info to the :help showing-menus
section:
*** ../vim-8.2.0385/runtime/doc/gui.txt 2020-02-26 16:15:31.060386992 +0100
--- runtime/doc/gui.txt 2020-03-16 16:33:44.019652866 +0100
***************
*** 855,860 ****
--- 855,862 ----
* The menu was defined with "nore" to disallow remapping.
& The menu was defined with "<script>" to allow remapping script-local
mappings only.
+ * The menu was defined with "<silent>" to avoid showing what it is
+ mapped to when triggered.
- The menu was disabled.
Note that hitting <Tab> while entering a menu name after a menu command may
Happy Vimming!
Tom M
--
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAD_dSXizb%3DoT8e1NhDp0_fj_efUTfaeBJKRXjwx%3D1EAJwPB6ZQ%40mail.gmail.com.