Subject: bin/16210: vi hides lines
To: None <>
From: Kimmo Suominen <>
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
>Originator:     Kimmo Suominen
>Release:        NetBSD 1.5ZC from 2002-03-21
System: NetBSD 1.5ZC NetBSD 1.5ZC (GW-GENERIC) #45: Sun Mar 24 19:35:00 EST 2002 i386
Architecture: i386
Machine: i386
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...  :-/
Run vi as explained above...