]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): fix :vmap example to avoid unwanted spaces with JJ
authorDamien Lejay <damien@lejay.be>
Sat, 28 Jun 2025 17:19:04 +0000 (19:19 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 28 Jun 2025 17:19:04 +0000 (19:19 +0200)
fixes: #17621
closes: #17623

Signed-off-by: Damien Lejay <damien@lejay.be>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/visual.txt

index 3f48915c65e1e9a7c4b04e95b71feb6b2ff6c3ae..68773dd9d8633a0b902ada3c39cf26e65ee29963 100644 (file)
@@ -1,4 +1,4 @@
-*visual.txt*    For Vim version 9.1.  Last change: 2023 Sep 19
+*visual.txt*    For Vim version 9.1.  Last change: 2025 Jun 28
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -392,7 +392,7 @@ want only part of the line to be replaced you will have to make a mapping for
 it.  In a future release ":" may work on partial lines.
 
 Here is an example, to replace the selected text with the output of "date": >
-       :vmap _a <Esc>`>a<CR><Esc>`<i<CR><Esc>!!date<CR>kJJ
+       :vmap _a <Esc>`>a<CR><Esc>`<i<CR><Esc>!!date<CR>kgJgJ
 
 (In the <> notation |<>|, when typing it you should type it literally; you
 need to remove the 'B' and '<' flags from 'cpoptions')