On Fri, Jan 13, 2023 at 8:13 PM Tim Chase wrote:
> On 2023-01-13 16:41, Salman Halim wrote:
> > For example, I want to find a match for 'cat', but only in lines 50 to
> > 100. If my cursor is before line 50 when I start, I can prefix my
> > expression with \%>49 and pass 100 as the stopline, but
>
>
> I don't know your specific requirements, but not wanting to move
> your cursor should not prevent you from using search(). Just save
> the cursor position, save the window position, move the cursor to
> the start of the search range, and when you're done with the
> searching, restore the
On 2023-01-13 16:41, Salman Halim wrote:
> For example, I want to find a match for 'cat', but only in lines 50 to
> 100. If my cursor is before line 50 when I start, I can prefix my
> expression with \%>49 and pass 100 as the stopline, but that doesn't
> work if my cursor is AFTER line 50 as it
On 2023-01-13, Salman Halim wrote:
> Hello,
>
> I want to use something like search(), but only across a specific set of
> lines.
> The problem is that search() always starts at the current cursor line.
>
> For example, I want to find a match for 'cat', but only in lines 50 to 100. If
> my
Hello,
I want to use something like search(), but only across a specific set of
lines. The problem is that search() always starts at the current cursor
line.
For example, I want to find a match for 'cat', but only in lines 50 to 100.
If my cursor is before line 50 when I start, I can prefix my
>
> Thanks for that, Gary.
>
> I'm officially an idiot.
> --
> Ottavio Caruso
>
At least you're an honest one. :-)*
Welcome to the Order of the Golden Face-Palm, which I think we all earn at
one time or another. Confession and explanation improves collective
wisdom.
--
--
You received this