Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!munnari!mimir!wacsvax!frank From: frank@wacsvax.OZ (Frank O'Connor) Newsgroups: comp.unix.wizards Subject: Re: vi tips- summary number one Message-ID: <667@wacsvax.OZ> Date: Wed, 23-Sep-87 06:45:31 EDT Article-I.D.: wacsvax.667 Posted: Wed Sep 23 06:45:31 1987 Date-Received: Sat, 26-Sep-87 10:55:51 EDT References: <601@augusta.UUCP> Reply-To: frank@wacsvax.uwa.oz.OZ (Frank O'Connor) Organization: Comp Sci, University of Western Australia Lines: 10 Keywords: vi tips Summary: use of ^d and ^u The vi we use on SysVr2.0 on a PDP 11/73 used to scroll a full page contrary to the manual and accepted practice. So, I got into the code to fix it. What I found was that the command ^d or ^u (e.g. 4^d) scrolled down 4 lines, and that all subsequent uses of ^d and ^u then scrolled 4 lines. Is this documented? Anyway, to fix the problem I also looked at our 4.3BSD sources which are very different. It does the correct thing of setting the default to half the screen length. Other versions explicitly set it to a number (e.g. 11, 12, 24). What does your ^d and ^u do?