title: Javascript refactoring in Vim
body: <p>I don't need anything super fancy, but some scope aware refactoring would be nice.</p>
  
  <p>Refactoring something in function scope is one of the most common scenarios for me: </p>
  
  <pre><code>var funyfun = function(arg1, arg2) {
  
      arg1 = ...arg2;
      arg2....();
  }
  </code></pre>
  
  <p>Is there a vim plugin that would allow me to refactor arg1, for ex, in the scope of that function or do I have to invent my own "select block, find, replace" shortcut.</p>
  
  <p>For extra kudos, something that would "refactor on the fly" as I type, so I can see where changes are being made. Netbeans does an excellent job of this.</p>