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

17 views
Skip to first unread message

Erhy

unread,
Dec 11, 2017, 4:53:56 PM12/11/17
to vim_use
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

Ben Fritz

unread,
Dec 15, 2017, 2:15:21 PM12/15/17
to vim_use
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?
Reply all
Reply to author
Forward
0 new messages