On 2009-08-24, drlatex wrote:
> Hello there vimmers,
> 
> I was wondering if I could remove everything in a file up to AND including a
> certain word within the file.
> 
> Let's say I have something like ".......hello word123"
> 
> And I want only 123 to remain.  
> 
> Is there a way to delete everything up to and including the string "hello
> word" ??
> 
> I know that this particular string only comes up once in the file.

    :%s/\_.*hello word//

See

    :help /\_.

Regards,
Gary



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

Reply via email to