title: Vim regex matching multiple results on the same line
body: <p>I'm working on a project where I'm converting an implementation of a binary tree to an AVL tree, so I have a few files that contain lines like:</p>
  
  <pre><code>Tree&lt;int&gt;* p = new Tree&lt;int&gt;(*t);
  </code></pre>
  
  <p>all over the place.  The goal I have in mind is to use a vim regex to turn all instances of the string <code>Tree</code> into the string <code>AVLTree</code>, so the line above would become:</p>
  
  <pre><code>AVLTree&lt;int&gt;* p = new AVLTree&lt;int&gt;(*t);
  </code></pre>
  
  <p>the regex I tried was <code>:%s/Tree/AVLTree/g</code>, but the result was:</p>
  
  <pre><code>AVLTree&lt;int&gt;* p = new Tree&lt;int&gt;(*t);
  </code></pre>
  
  <p>I looks to me like when vim finds something to replace on a line it jumps to the next one, so is there a way to match multiple strings on the same line? I realize that this can be accomplished with multiple regex's, so my question is mostly academic.</p>