title: How do I join two lines in vi?
body: <p>I have two lines in a text file like below:</p>
  
  <pre><code>S&lt;Switch_ID&gt;_F&lt;File type&gt;
  _ID&lt;ID number&gt;_T&lt;date+time&gt;_O&lt;Original File name&gt;.DAT
  </code></pre>
  
  <p>I want to append the two lines in vi like below:</p>
  
  <pre><code>S&lt;Switch_ID&gt;_F&lt;File type&gt;_ID&lt;ID number&gt;_T&lt;date+time&gt;_O&lt;Original File name&gt;.DAT
  </code></pre>
  
  <p>The second line got deleted and the contents of the second line was appended to the first line.</p>
  
  <p>How could I do it using command mode in vi?</p>