Red Hat Bugzilla – Bug 14046
vi: Home and End keys in vt220
Last modified: 2008-05-01 11:37:56 EDT
I telnet into a beta3 with vt220:
Home and End keys invert the case of the characters instead of going to
the beginning and end of line. This is true for vi (vim-minimal) and vim
(vim-enhanced), for both normal and insert mode.
They are ok at the console (could only try vim-minimal at the console
RedHat6.1 was ok.
This bug is very similar to #9963.
Some more problems:
TERM=vt220: does not work (neither in normal nor in insert mode)
TERM=linux: ok in insert mode; just move the cursor left in normal mode (does
not delete the char on the left of the cursor)
TERM=vt220: the same of TERM=linux.
Can't reproduce it with the current version.
Ok, maybe my VT emulator has some weird key mappings itself that make things go
wrong (it works with 6.1, though).
Just for the record, I solved with:
map! ^[[1~ <home>
map! ^[[4~ <end>
map! ^[[3~ <del>
map ^[[1~ <home>
map ^[[4~ <end>
map ^[[3~ <del>