Bug 14046

Summary: vi: Home and End keys in vt220
Product: [Retired] Red Hat Linux Reporter: giulioo
Component: vimAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-01 20:30:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description giulioo 2000-07-15 18:57:14 UTC
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 
though).

RedHat6.1 was ok.

This bug is very similar to #9963.

Comment 1 giulioo 2000-07-16 16:22:09 UTC
Some more problems:

DELETE:
TERM=linux: ok
TERM=vt220: does not work (neither in normal nor in insert mode)

BACKSPACE:
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.


Comment 2 Bernhard Rosenkraenzer 2000-08-03 13:35:30 UTC
Can't reproduce it with the current version.

Comment 3 giulioo 2000-08-04 13:18:53 UTC
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>