title: How to split text into multiple lines based on a pattern using Vim?
body: <p>Suppose you have this text:</p>
  
  <pre><code>name1 = "John"; age1 = 41;
  name2 = "Jane"; age2 = 32;
  name3 = "Mike"; age3 = 36;
  ...
  </code></pre>
  
  <p>and you want to split each line into two lines to give a result like this:</p>
  
  <pre><code>name1 = "John";
  age1 = 41;
  name2 = "Jane";
  age2 = 32;
  name3 = "Mike";
  age3 = 36;
  ...
  </code></pre>
  
  <p>How would you automate this operation?</p>
  
  <p><strong>Some notes:</strong></p>
  
  <ol>
  <li>I already tried the following method:<br>
  (1) Select the text in virtual-vode,<br>
  (2) Execute <code>:'&lt;,'&gt;:norm ^3f r^M</code> ***,<br>
  but it doesn't work correctly; it splits only half of the lines, because after every line is broken, the next repetition of the command applies to the rest of the broken line instead on the next line!  </li>
  <li>This can be achieved using a macro but I'm looking for more elegant solution.<br>
  <br/>
  <br/></li>
  </ol>
  
  <p>*** <em>explanation of the sequence:</em>  </p>
  
  <p><em>-<code>norm</code> for executing the following commands in normal-mode</em><br>
  <em>-<code>^</code> for moving the cursor to the beginning of the line</em><br>
  <em>-<code>3f&lt;space&gt;</code> for moving the cursor to the 3rd space in the line</em><br>
  <em>-<code>r^M</code> for replacing that space with a new-line</em>  </p>