title: Vi only uses one line of terminal
body: <p>So I <code>ssh</code> into this old box we have at work, and it seems no one ever tried to use Vi on it before.  When I try to open a file in vi all I get is one line of the file at a time, and it kind of screws up (visually) the terminal.  </p>
  
  <p><img src="https://i.stack.imgur.com/5FPEw.png" alt="full terminal"></p>
  
  <p><img src="https://i.stack.imgur.com/pTud3.png" alt="relevant terminal"></p>
  
  <p>I am <code>ssh</code>ing in from a Mac, if that makes a different (however other servers I <code>ssh</code> into for work are fine).  </p>
  
  <p>When I run <code>uname -a</code> I get: <code>Linux dev 2.6.32.27-grsec #5 SMP Thu Dec 30 01:24:01 PST 2010 i686 unknown unknown GNU/Linux</code>.  I am using <code>bash</code> but if something else will work I am all ears.  </p>
  
  <p>This has to have happend to someone else, what setting am I missing that is causing this issue?</p>
  
  <p>Thanks!</p>
  
  <p><strong>UPDATE</strong>: After research from comments, I found that this is only an issue with vi, not vim.  So that begs the question, is this just an incompatibility with vi (not vim) and current ssh/terminal/shells, or is something else going on?</p>
  
  <p><strong>SOLVED</strong>: This was a carriage return -> new line issue that the old vi didn't handle properly.  Running <code>stty</code> with an argument to convert carriage returns to new lines allowed vi to work properly.  Hopefully that helps someone that can't upgrade to vim.</p>