On 24 Oct 2008, at 15:19, SysAdm wrote:

>
> Good morning Andrew,
> I should have done this before.  Below is a clipping from the mail
> logfile containing one of the sections I'm trying to search/highlight
> for.  The hyphens are on seperate lines and kind of delineate that
> particular email transaction.
 ><snip/>
> Sorry I didn't post this before.  So I would like to be able to search
> for and highlight the portion starting at "timesheet" (perhaps "FROM:
> timesheet"?) through a potentially varying number of lines to the line
> with "Winsock Error"; then be able to hit "n" for next to go to the
> next occurrence of this Winsock error from timesheet.  Hope this makes
> it more clear.
>
Can I just clarify... you are ONLY interested in FAILED emails, ones
where there is a winsock error message, right? That makes it more
difficult. We have to find some way to stop matching successful emails,
otherwise it'll start highlighting on a successful mail and not stop
until it finds a failure.

Do you have a sample of a successful mail log entry that you can post? I
think some kind of zero-length match 'dos not match here' pattern might
do the trick, but I'm not too up on those....

:help zero-with

gives a couple of patterns ([EMAIL PROTECTED] for ex) but I'm not sure they'd 
work.
After all, proving a negative is one of the hardest tasks.

REgards, Andy
-- 
Andrew Long
andrew dot long at mac dot com


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to