Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!tektronix!reed!bart From: bart@reed.UUCP (Bart Massey) Newsgroups: comp.sys.att,comp.editors Subject: Re: vi editor problem on UNIX-pc Message-ID: <7793@reed.UUCP> Date: Tue, 24-Nov-87 16:14:08 EST Article-I.D.: reed.7793 Posted: Tue Nov 24 16:14:08 1987 Date-Received: Sat, 28-Nov-87 16:43:13 EST References: <50@cjsa.UUCP> <113@ghostwheel.UUCP> <1475@ttidca.TTI.COM> Reply-To: bart@reed.UUCP (Bart Massey) Organization: Reed College, Portland OR Lines: 20 Xref: mnetor comp.sys.att:1876 comp.editors:29 In article <1475@ttidca.TTI.COM> kevin@ttidcb.UUCP (Kevin Carothers) writes: > I have had a lot of luck in cleaning up vi on our particular version of > UNIX (*) by taking out the /etc/termcap boolean "xn" on a vt100 type > terminal. The article failed to mention if UNIX was running native on the > PC (SCO Corp. ?) or via Smartterm. Also, make sure that on vt100's that > the terminal has "wraparound" mode set. Otherwise your source file turns > into a horror show. On a genueene Dec VT one-hunnert or two-hunnert series ternimal, don't do this, but many emulators will require it. The "xn" termcap entry indicates the magic DEC wrapmargin feature: when you get to column 80, do not advance the cursor past it (wrapping) until the next character is sent. Then wrap the character. If the character you're wrapping is a newline, eat it, so that you don't get the effect of two newlines. Most terminals and programs that try to emulate this get it wrong. The classic is to just punt and do normal wrapping. For these emulators, the termcap entries given above ("am:@xn") are correct. Bart