title: Screen + vim causes shift-enter to insert 'M' and a newline
body: <p>When running a vim instance in gnu screen hitting shift enter in insert mode adds an 'M' and then a newline, rather than just a newline.</p>
  
  <p>Does anybody know what the problem might be, or where to look?</p>
  
  <p>Relevant system info:</p>
  
  <blockquote>
    <p>Ubuntu 8.04.1</p>
    
    <p>Screen version 4.00.03 (FAU) 23-Oct-06</p>
    
    <p>VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 31 2008 12:20:21)
      Included patches: 1-138</p>
    
    <p>Konsole 1.6.6 (Using KDE 3.5.10)</p>
  </blockquote>
  
  <p>Thanks to the comments.  When checking the value of <code>$TERM</code> I noticed that it was <code>xterm</code> (as expected), but within screen <code>$TERM</code> was set to <code>screen-bce</code>.  Setting <code>TERM=xterm</code> after launching screen resolves this issue.</p>
  
  <p>Adding the following to <code>~/.screenrc</code> solved the problem without having to do anything manually:</p>
  
  <blockquote>
    <p>term xterm</p>
  </blockquote>