Monday, August 24, 2009

Remove everything up to and including a certain word

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.

Thanks in advance!
--
View this message in context: http://www.nabble.com/Remove-everything-up-to-and-including-a-certain-word-tp25123664p25123664.html
Sent from the Vim - General mailing list archive at Nabble.com.


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

No comments: