Saturday, January 14, 2023

Re: Searching across a range of lines

On 2023-01-13 17:52, Salman Halim wrote:
> On Fri, Jan 13, 2023 at 8:13 PM Tim Chase <vim@tim.thechases.com
> <mailto:vim@tim.thechases.com>> wrote:
>
> While possibly not quite what you're looking for, if I want such, I use
> ...>   :50,100g/cat/#
>
> Tim, this doesn't do what I'm trying to do, but the bigger problem is
> that :g absolutely moves the cursor, putting it on the last found match.

I use :g as Tim does. I don't particularly want the cursor moved, but
after looking at the results I simply type `` and the cursor is back
where it was.

Stan Brown
Tehachapi, CA, USA
https://BrownMath.com

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/f7d3ab30-e8cd-6e68-08d0-cf920b9e895f%40fastmail.fm.

No comments:

Post a Comment