Friday, March 6, 2015

Re: Search pattern while excluding some words

On Fri, Mar 06, 2015 at 02:58:41PM -0500, Charles Campbell wrote:
> John Cordes wrote:
> > Here's my question: while running this search on 4 or
> > more uppercase characters, I would like to be able to skip
> > past (ignore) certain commonly occurring 'words' such as
> > RCMP, QEII, SPCA and such. I want to jump immediately to
> > the next occurring surname.
> >
> You might find LogiPat helpful; see
> http://www.drchip.org/astronaut/vim/index.html#LOGIPAT .
>
> :LP !"RCMP" && !"QEII" && !"SPCA" && "[A-Z]\{4,\}"
>
> LogiPat allows boolean logic to work with regexp patterns.
>
> Regards,
> Chip Campbell

Thanks Dr. Chip! I will give your LogiPat a try too -- it
looks very useful.

John Cordes

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: