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.
Does anybody know what the problem might be, or where to look? Thanks in advance
Relevant system info:
Ubuntu 8.04.1
Screen version 4.00.03 (FAU) 23-Oct-06
VIM - Vi IMproved 7.1 (2007 May 12, compiled Jan 31 2008 12:20:21) Included patches: 1-138
Konsole 1.6.6 (Using KDE 3.5.10)
Thanks to the comments. When checking the value of $TERM
I noticed that it was xterm
(as expected), but within screen $TERM
was set to screen-bce
. Setting TERM=xterm
after launching screen resolves this issue.
Adding the following to ~/.screenrc
solved the problem without having to do anything manually:
term xterm