Date: Fri, 4 Apr 1997 10:14:27 -0800 (PST) From: Gary Kline <kline@tera.com> To: zgabor@CoDe.hu (Zahemszky Gabor) Cc: freebsd-questions@freebsd.org, kline@tera.com Subject: Re: vi/nvi slower with 2.2R Message-ID: <199704041814.KAA01047@athena.tera.com> In-Reply-To: <199704040834.KAA00586@CoDe.hu> from Zahemszky Gabor at "Apr 4, 97 10:34:40 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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<character><ESC>'' 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 <ESC> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704041814.KAA01047>