Subject: bin/16210: vi hides lines
To: None <gnats-bugs@gnats.netbsd.org>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: netbsd-bugs
Date: 04/05/2002 21:55:19
>Number:         16210
>Category:       bin
>Synopsis:       vi hides lines
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 05 18:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kimmo Suominen
>Release:        NetBSD 1.5ZC from 2002-03-21
>Organization:
>Environment:
System: NetBSD beowulf.gw.com 1.5ZC NetBSD 1.5ZC (GW-GENERIC) #45: Sun Mar 24 19:35:00 EST 2002 kim@nix.gw.com:/net/beowulf/src-1/NetBSD/cvsroot/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:
Our vi has changed -- try running

    vi +5 .tcshrc

With the old vi (from 2001-10-22) the first line of the file is
displayed at the top of the screen, and the cursor is placed in
the beginning of the 5th line.

With the new vi (from 2002-03-21) the top line of the display
is the 5th line of the line.  The cursor is placed at the top
left corner of the display (i.e. beginning of the 5th line).

The latter behaviour is unpleasant, especially with very short
files, e.g. mail drafts, where you want to keep seeing the To:,
cc: and other headers while you type.

Why is this different?  Can I get the old behaviour back with
some simple adjustment?  Vi has worked "the old way" for years
and years...  :-/
>How-To-Repeat:
Run vi as explained above...
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: