Friday, December 15, 2017

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

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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: