title: Replace Text Between 2 Characters in Vim
body: <p>I am working on a Legacy Code, where I am having statements like:</p>
  
  <pre><code>int array[MAX_SIZE_FOR_THIS_ARRAY];
  </code></pre>
  
  <p>In VIM, I want to replace the Text between [ &amp; ] (including [ &amp; ]) with <em>ARRAY</em> as follows:</p>
  
  <pre><code>int array_ARRAY_;
  </code></pre>
  
  <p>Please NOTE:
  1. The Array Size Macro will be different for Different Arrays, hence we cannot use MAX_SIZE_FOR_THIS_ARRAY in our search pattern.
  2. The name of variable "array" is also not fixed.</p>
  
  <p>I need to search for [ ] only &amp; replace [...] with <em>ARRAY</em> everywhere, in thousands of lines of code.</p>
  
  <p>Can somebody please help me with this?</p>