Am I the only one amused that /home<CR>n   does nearly the same thing?
I mean, I suppose you could be doing operations on your search but
couldn't you equally just "ayw and do stuff there?  Besides \{-}\zs
takes too long to type :)

-----Original Message-----
From: Bill McCarthy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 30, 2006 4:56 PM
To: zzapper
Cc: [email protected]
Subject: Re: Matching JUST the nth occurence of a text in a line

On Thu 30-Nov-06 6:31pm -0600, zzapper wrote:

> Hi given a sample text below
>
> home
>
> home gg home xxx
>
> home ggg ggg home home
>
> home home
>
> How do you match JUST the second "home" in any of the above lines (ie
avoid
> greediness)

   /home.\{-}\zshome
   
-- 
Best regards,
Bill

Reply via email to