title: Vim: For Multiple Files: Copy all Text, Replace and Paste
body: <p>I want to do the following for multiple files using Vim:</p>
  
  <ol>
  <li>Copy all text in each file </li>
  <li>Replace some text </li>
  <li>Paste the copied text at the end of the each file</li>
  <li>Replace some other text</li>
  </ol>
  
  <p>Here are my commands for one file:</p>
  
  <pre><code>:%y
  :%s/old1/new1/g
  :G
  :P
  :%s/old2/new2/g
  </code></pre>
  
  <p>Can anybody tell me the syntax to do so? Especially that I'm new to Vim!</p>
  
  <p>I found out that argdo can execute commands on multiple files. I found many examples to use argdo in replacing text, but I couldn't find the syntax to use argdo with :%y, :G, or :P </p>
  
  <p>Thanks.</p>