commit 63a7b92e5885927a6b2ef11ede3d951e9ab38178
parent 331de6afa6ffa28ea5165de50adb39c5f61a52c2
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun, 29 Jun 2025 08:01:12 +0800
vim-patch:1fa3f0c: runtime(doc): fix :vmap example to avoid unwanted spaces with JJ (#34695)
fixes: vim/vim#17621
closes: vim/vim#17623
https://github.com/vim/vim/commit/1fa3f0c215d37b3cb36f69841d5ab29ca8e0faa5
Co-authored-by: Damien Lejay <damien@lejay.be>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/runtime/doc/visual.txt b/runtime/doc/visual.txt
@@ -391,7 +391,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' flag from 'cpoptions')