I'm logged in to my Debian machine using putty. I have a GNU screen session open and I am running vim in it. the problem I have is that when I go to save the file using
:w<enter> this appears to translate to
M<newline> in vim! The combination of these programs is doing it - if I just use vim without gnu screen then the problem goes away.
How can I prevent putty-gnuscreen-vim from translating the
:w<enter> character sequence?
I looked at the putty settings and the only one that looks relevant is:
terminal > keyboard > the function keys > ESC[n~
I have tried changing this to
vt100+ but it has no effect on the problem.
$ echo $TERM screen