multi-line searches doesn't mark the found items on the whole

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

multi-line searches doesn't mark the found items on the whole

Erhy
Hello!
Have a rare csv, in which some items have more then one line.

My search pattern is

/\;"\%([ A-Za-z0-9\n\/\.\,\:äöüÄÖÜ\-]\+\)"\;

But if the found item is very big, not all of them is marked as found.

Are there special settings?

Thank you
Erhy

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: multi-line searches doesn't mark the found items on the whole

Ben Fritz
On Monday, December 11, 2017 at 3:53:56 PM UTC-6, Erhy wrote:

> Hello!
> Have a rare csv, in which some items have more then one line.
>
> My search pattern is
>
> /\;"\%([ A-Za-z0-9\n\/\.\,\:äöüÄÖÜ\-]\+\)"\;
>
> But if the found item is very big, not all of them is marked as found.
>
> Are there special settings?
>
> Thank you
> Erhy
I think you're saying sometimes the match is not highlighted according to the 'hlsearch' option. From the help for that option:

        When the search pattern can match an end-of-line, Vim will try to
        highlight all of the matched text.  However, this depends on where the
        search starts.  This will be the first line in the window or the first
        line below a closed fold.  A match in a previous line which is not
        drawn may not continue in a newly drawn line.

In other words, you probably are not seeing a match that starts before the lines which are currently displayed on-screen. Does that match what you're seeing?

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.