title: How to locate all occurences of search string
body: <p>Using substitution, I want to replace</p>
  
  <pre><code>ones(var1.size,var2.size)
  </code></pre>
  
  <p>with</p>
  
  <pre><code>np.ones([var1.size,var2.size])
  </code></pre>
  
  <p>I tried using</p>
  
  <pre><code>%s/ones(\(\w\+\),\(\w\+\))/np.ones([\1,\2])/gc
  </code></pre>
  
  <p>based on other posts on Stack Overflow, however, Vim is unable to locate all occurrences of the search phrase.</p>
  
  <p>It was able to locate <code>ones(3,1)</code> and change it to <code>np.ones([3,1])</code>, but it could NOT locate <code>ones(1,xi.size)</code>.</p>
  
  <p>Where am I going wrong?</p>