title: How to repeat a command with substitution in Vim?
body: <p>In Unix the <code>^</code> allows you to repeat a command with some text substituted for new text. For example:</p>
  
  <pre><code>csh% grep "stuff" file1 &gt;&gt; Results
  grep "stuff" file1
  csh% ^file1^file2^
  grep "stuff" file2
  csh%
  </code></pre>
  
  <p>Is there a Vim equivalent? There are a lot of times I find myself editing minor things on the command line over and over again.</p>