title: How to execute a :g style command with a range in Vim
body: <p>With Vim, if I want to delete every line which has the text <code>pending</code> I can do:</p>
  
  <pre><code>:g/pending/d
  </code></pre>
  
  <p>How do I do this with a range? Say I want to delete every line with the text <code>pending</code> but only between lines 0 and 60 (or, between 0 and here) something like:</p>
  
  <pre><code>:0,./pending/d
  </code></pre>
  
  <p>I have searched, but I'm failing to see how to do this. I know you can do
  <code>:0,. normal &lt;command&gt;</code> but I'm not sure what the normal mode command to conditionally delete a line is.</p>
  
  <p>p.s. and where do you go in help to learn these things ;)</p>