]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): document global insert behavior
authorMohamed Akram <mohd.akram@outlook.com>
Sun, 14 Jul 2024 08:34:25 +0000 (10:34 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 14 Jul 2024 08:34:25 +0000 (10:34 +0200)
This is a partial revert of 8f3f58f since this issue was fixed in #15120.

related: #15120

Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/insert.txt

index d48018f584b814198064357c17466538224d04a4..0d59a2edab304b5acb11a52d7a57a8a318a6e2fb 100644 (file)
@@ -2005,8 +2005,15 @@ command in ex mode: >
        one
        two
 <
-NOTE: These commands cannot be used with |:global| or |:vglobal|.
-":append" and ":insert" don't work properly in between ":if" and
+In |Ex-mode|, when these commands are used with |:global| or |:vglobal| then
+the lines are obtained from the text following the command.  Separate lines
+with a NL escaped with a backslash: >
+       :global/abc/insert\
+       one line\
+       another line
+The final "." is not needed then.
+
+NOTE: ":append" and ":insert" don't work properly in between ":if" and
 ":endif", ":for" and ":endfor", ":while" and ":endwhile".
 
                                                        *:start* *:startinsert*