From owner-freebsd-questions Fri Apr 4 10:15:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA23623 for questions-outgoing; Fri, 4 Apr 1997 10:15:07 -0800 (PST) Received: from hod (hod.tera.com [206.215.142.67]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA23614 for ; Fri, 4 Apr 1997 10:15:05 -0800 (PST) Received: from athena.tera.com (athena.tera.com [206.215.142.62]) by hod (8.7.5/8.7.3) with ESMTP id KAA14100; Fri, 4 Apr 1997 10:14:28 -0800 (PST) From: Gary Kline Received: (from kline@localhost) by athena.tera.com (8.7.5/8.7.3) id KAA01047; Fri, 4 Apr 1997 10:14:27 -0800 (PST) Message-Id: <199704041814.KAA01047@athena.tera.com> Subject: Re: vi/nvi slower with 2.2R In-Reply-To: <199704040834.KAA00586@CoDe.hu> from Zahemszky Gabor at "Apr 4, 97 10:34:40 am" To: zgabor@CoDe.hu (Zahemszky Gabor) Date: Fri, 4 Apr 1997 10:14:27 -0800 (PST) Cc: freebsd-questions@freebsd.org, kline@tera.com X-Mailer: ELM [version 2.4ME+ PL23 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk According to Zahemszky Gabor: > > According to Doug White: > > > On Thu, 3 Apr 1997, Gary Kline wrote: > > > > > > > > > > > Has anyone else noticed how much slower most vi > > > > commands are in 2.2? When I type something like > > > > ``df'' it is a few seconds before > > > > the ESC seems to be recognized. > > > > > > > > With 2.1.5 and before, vi was much faster. Am I > > > > missing some new configuration or what? > > > > > > The ESC has always taken a bit of time to respond. This is because the > > > ESC character is used to escape special keys like arrow keys. You have to > > > wait for a timeout before your single ESC is recognized. There might be a > > > termcap variable that controls the timeout. > > I don't know (I have 2.1.5 now), but maybe there is a newer version of vi in > 2.2. Type :ver, and see it. In 2.1.5, it's a very-very old 1.34 (from > '94) version in it, maybe in 2.2, it's a newer. If I remember well, in > newer nvi's (1.7x ?), there is a new handling of the timeout. > In 1.34, it's only :set timeout/:set notimeout, but it may changed. > > Oopps! I've found, that :set keytime=X may interested in you. > Hm, the version is 1.79 from 23oct96. Some months ago I asked Keith Bostic about up-rev'ing vi. This revision must be it. It's annoying. Ha, I just found it: ``escapetime''. It defaults to 6. 0.6 seconds. And setting it to =1 does the trick! Thanks much. gary