On Fr, 09 Okt 2020, [email protected] wrote:
>
> Enviroment: Ubuntu 20.04.1 LTS; Terminal: Guake Terminal: 3.6.3
> Program: VIM - Vi IMproved 8.1 with Patches: 1-2269
>
> The command :'<,'>s/\%V\n/{something}<CR> considers hole line even the
> selection is e.g. just half the line.
> Example:
> Hi, how are you
> I'm fine, thank you
>
> Selection in visual Mode:
> Hi, how are you
> I'm fine, thank you
>
> using command :'<,'>s/\%V\n/?\r<CR> leads to:
> Hi, how are you?
> I'm fine, thank you?
>
> Also the right one should be without the last "?"because with \%V only the
> selection in visual mode should be searched:
> Hi, how are you?
> I'm fine, thank you
It's hard to see in a plain text what you are actually doing. Looking at
the message in google groups archive makes it a whole lot more readable.
I suspect this might actually be a bug here. Can you please post a
complete example using `vim --clean` without using visual indications
but using vim commands to show what you are doing?
Also can you please try this with the latest version from the
github.com/vim/vim repository?
BTW: Does setting the regexpengine (i.e. :set re=1, :set re=2) make a
difference here?
Best,
Christian
--
Angenehm sind die erledigten Arbeiten.
-- Marcus Tullius Cicero (106-43 v.Chr.)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20201013094315.GC1656%40256bit.org.