Ricky wrote:
> Hi, All
> 
> One line contains a number of same words:
> ---
> I've never saw a saw saw a saw
> She never saw a saw saw a saw
> ...
> He never saw a saw saw a saw
> ---
> 
> I just want to replace the 2nd or 3rd "saw", Do you have any idea? 

What makes it unique?  What makes it different from all the other text?
 When you can answer those questions, you know what to match for.

:%s/\<saw\s\+saw\>/saw/g


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

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

Reply via email to