Commit: runtime(doc): fix a typo in :write-plugin

1 view
Skip to first unread message

Christian Brabandt

unread,
1:45 PM (7 hours ago) 1:45 PM
to vim...@googlegroups.com
runtime(doc): fix a typo in :write-plugin

Commit: https://github.com/vim/vim/commit/18c6b91ca94c94db018324cd0f8e768922d39af8
Author: nyngwang <nyng...@gmail.com>
Date: Tue Jun 2 17:35:54 2026 +0000

runtime(doc): fix a typo in :write-plugin

closes: https://github.com/vim/vim/issues/20410

Signed-off-by: nyngwang <nyng...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/doc/usr_51.txt b/runtime/doc/usr_51.txt
index 1ed1b6b37..82bb0faf2 100644
--- a/runtime/doc/usr_51.txt
+++ b/runtime/doc/usr_51.txt
@@ -1,4 +1,4 @@
-*usr_51.txt* For Vim version 9.2. Last change: 2026 May 28
+*usr_51.txt* For Vim version 9.2. Last change: 2026 Jun 02


VIM USER MANUAL by Bram Moolenaar
@@ -220,11 +220,11 @@ case only one item is used. When adding more items, creating a submenu is
recommended. For example, "Plugin.CVS" could be used for a plugin that offers
CVS operations "Plugin.CVS.checkin", "Plugin.CVS.checkout", etc.

-Note that in line 28 ":noremap" is used to avoid that any other mappings cause
-trouble. Someone may have remapped ":call", for example. In line 24 we also
+Note that in line 26 ":noremap" is used to avoid that any other mappings cause
+trouble. Someone may have remapped ":call", for example. In line 22 we also
use ":noremap", but we do want "<SID>Add" to be remapped. This is why
"<script>" is used here. This only allows mappings which are local to the
-script. |:map-<script>| The same is done in line 26 for ":noremenu".
+script. |:map-<script>| The same is done in line 24 for ":noremenu".
|:menu-<script>|


Reply all
Reply to author
Forward
0 new messages