Sunday, December 6, 2020

Re: Matching words within X lines [PS]

On 2020-12-06 20:23, Tim Chase wrote:
> They're ugly, but vim will at least let you do them.

Oh, one other caveat: it only finds the bookends and starts the next
search after the closing bookend. So if there is the possiblity that
the matches overlap, such as searching for "A...B" and you have

A text A text B text B

it will find the first A through its corresponding B, but won't find
the second A because it has been eaten as part of the first match.
Not a grievous concern, but at least something to be aware of if
you're using it to do some sanity-/duplicate-checking on your
documents.

-tim


--
--
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/20201206202900.13489911%40bigbox.attlocal.net.

No comments: