Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!mcsun!cernvax!chx400!bernina!neptune!inf.ethz.ch!wyle From: wyle@inf.ethz.ch (Mitchell Wyle) Newsgroups: comp.editors Subject: Re: vi doubleescape feature Summary: use z windowing Keywords: vi has a window-shrinking feature Message-ID: <17647@neptune.inf.ethz.ch> Date: 7 Dec 90 12:40:22 GMT References: <90333.192627QQ11@LIVERPOOL.AC.UK> <844@macuni.mqcc.mq.oz> <6328@hplabsz.HPL.HP.COM> Sender: news@neptune.inf.ethz.ch Reply-To: wyle@inf.ethz.ch (Mitchell Wyle) Organization: Departement Informatik, ETH, Zurich Lines: 33 In <6328@hplabsz.HPL.HP.COM> sartin@cup.hp.com (Rob Sartin) remarks: >If you've ever used an error correcting modem (on a noisy line) or a >slow (or error prone) network connection, you know that any mechanism >involving timeouts on multicharacter sequences is subject to all sorts >of fun errors. If you use vi in this type of situation you will find >that doubleescape is a wonderful addition. If not, then you can >probably rely on the timeouts and have no problems. Vi also has the z (window) command. To quote from Maarten Litmaath's reference quide, If in the next commands the field is present, the windowsize will change to . The window will always be displayed at the bottom of the screen. [*] is an optional line number. [*]z[wi] | Put line <*> at the top of the window | (default the current line). [*]z[wi]+ | Put line <*> at the top of the window | (default the first line of the next page). [*]z[wi]- | Put line <*> at the bottom of the window | (default the current line). [*]z[wi]^ | Put line <*> at the bottom of the window | (default the last line of the previous page). [*]z[wi]. | Put line <*> in the centre of the window | (default the current line). when working on a telephone line, I usually set the window size to 7 lines. -Mitch