Sunday, December 20, 2020

Re: Matching a non-match

A. Wik wrote:
> Hi all,
>
> Browsing a directory listing, sometimes I hit lines like these:
> ./spool/exim/input/1FM8sl-00004n-Ix-H
> ./spool/exim/input/1FM8sn-00004u-OF-D
> ./spool/exim/input/1E9dsQ-00004f-MO-D
> [... thousands of similar lines ...]
>
> How can I use "/" to find the next line not matching the above
> pattern? I've tried the following (and several variations):
> /\(.*exim.input\)\@<!.*
>
Hello:

You could use LogiPat: :LP !"exim/input" and find the next line. Or, you
could use :LPE !"exim/input" and be given the expresson LogiPat used.
LogiPat comes with vim, by the way.

Regards,
Chip Campbell

--
--
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/e977745d-17e9-87ab-e057-992e622be1e7%40drchip.org.

No comments:

Post a Comment