N900, xterm, screen and ViM
Categories: [ IT ]
For some reason, the xterm on the Nokia N900 sends KP_Enter
instead of simply Enter
when pressing the Enter key. The result is that ViM inserts an “M” in
addition to starting a new line. Maemo bug #6009
discusses the problem, and thankfully there's a fix (because the problem was
identified in December 2009 and nobody is actually taking care of it, so it
probably won't be corrected any time soon).
In the .screenrc
file, add the line bindkey -a -k fe stuff ˆM
. You can
also fix a currently running screen by pressing C-a :
and typing the
same bindkey
command.
I noticed that it fixes what is running in a screen, but programs running straight on the remote computer (not in screen, that is) are obviously still afflicted by the bug (searching in "less" is such an example).