mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
vim-patch:1fa3f0c: runtime(doc): fix :vmap example to avoid unwanted spaces with JJ (#34695)
fixes: vim/vim#17621
closes: vim/vim#17623
1fa3f0c215
Co-authored-by: Damien Lejay <damien@lejay.be>
This commit is contained in:
@ -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')
|
||||
|
Reference in New Issue
Block a user