From 1fa3f0c215d37b3cb36f69841d5ab29ca8e0faa5 Mon Sep 17 00:00:00 2001 From: Damien Lejay Date: Sat, 28 Jun 2025 19:19:04 +0200 Subject: [PATCH] runtime(doc): fix :vmap example to avoid unwanted spaces with JJ fixes: #17621 closes: #17623 Signed-off-by: Damien Lejay Signed-off-by: Christian Brabandt --- runtime/doc/visual.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/doc/visual.txt b/runtime/doc/visual.txt index 3f48915c65..68773dd9d8 100644 --- a/runtime/doc/visual.txt +++ b/runtime/doc/visual.txt @@ -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 `>a`!!datekJJ + :vmap _a `>a`!!datekgJgJ (In the <> notation |<>|, when typing it you should type it literally; you need to remove the 'B' and '<' flags from 'cpoptions')