Tuesday, August 25, 2009

Re: Remove everything up to and including a certain word

If I am standing (not in insert mode) with my cursor on the beginning . i would just type:ct1Hello World

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 ""  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!   

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

No comments: