title: Vim: delete until character for all lines containing a pattern
body: <p>I'm learning the <a href="http://vim.wikia.com/wiki/Power_of_g" rel="nofollow">power of g</a> and want to delete all lines containing an expression, to the end of the sentence (marked by a period). Like so:</p>
  
  <p><code>There was a little sheep. The sheep was black. There was another sheep.</code></p>
  
  <p>(Run command to find all sentences like <code>There was</code> and delete to the next period).</p>
  
  <p><code>The sheep was black.</code></p>
  
  <p>I've tried:</p>
  
  <ol>
  <li><code>:g/There was/d\/\.</code> in an attempt to "delete forward until the next period" but I get a <code>trailing characters</code> error. </li>
  <li><code>:g/There was/df.</code> but get a <code>df. is not an editor command error.</code></li>
  </ol>
  
  <p>Any thoughts?</p>