title: vim how transfer :substitute command to script
body: <p>Here are 2 :s commands.  Work fine at command line or as part of a key mapping, but I cannot get them to run correctly in a vim script.  I've used normal, execute, execute "normal..." and call normal on them.  I've put the range with the s, and before normal, I've tried them with and without a : before the s.  How should I write them within a .vim file?</p>
  
  <pre><code>:%s/&lt;[\/]\?SPAN\|DIV\|OPTION[^&gt;]*&gt;//gi
  :%s/&lt;\(hr\|h[1-6]\|ul\|li\|p\|tt\|ol\|table\|tr\|td\|p\) [^&gt;]\+/&lt;\1/gi
  </code></pre>