I've been catching up on the archives since joining this list. In
Marc's announcement for dvtm-0.4 he included the following todo item:
* terminal emulation fixes: make arrow keys work within vim (without
the TERM=linux workaround).
I think this is vim's bug, not dvtm's or madtty's or even rxvt's.
I have the same problem when I run vim in iTerm with an rxvt profile
and no dvtm.
It seems to be related to vim's builtin terminal definitions. I
checked the terminfo definitions for cub1, cuf1, cuu1 and cud1 with
infocmp. They're exactly the same for xterm as for rxvt, yet the
keys work in vim under xterm.
So I would vote against spending any time trying to fix it. The linux
term workaround is acceptable, imo.
Or am I missing something?
-- Charlie