Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.utexas.edu!rutgers!mcdchg!motmpl!ron From: ron@motmpl.UUCP (Ron Widell) Newsgroups: news.newusers.questions Subject: Re: characters past 80th column Message-ID: <1516@motmpl.UUCP> Date: 9 Feb 90 05:44:50 GMT References: <5604@hydra.gatech.EDU> <1990Feb7.222553.5806@actrix.co.nz> Reply-To: ron@motmpl.UUCP (Ron Widell) Organization: Motorola Semiconductor, Minneapolis, MN. Lines: 30 In article <1990Feb7.222553.5806@actrix.co.nz> paul@actrix.co.nz Paul Gillingwater) writes: >I posted this rather than e-mailing, because it brings up a related problem: >editors like emacs and vi, which I guess are the two most common editors >used with USEnet, don't word wrap when they hit the right margin. > If I understand your statement, I believe you can accomplish what you wish by setting the wrapmargin variable in vi. This can be set manually after invocation, via the EXINIT environment variable or in the .exrc file. Note that the number (decimal) value is the count from the right margin. > >Also, I would recommend setting the column width to 72 cols, to allow for >overflow when quoting messages. Thus if the TERM environment variable specifies a terminal defined by termcap or terminfo file to be 80 columns wide, 'set wm=8' would give you what you want, automatic word wrap beyond 72 characters. Obviously, a display with a different defined width would require a different value for wrapmargin. If this is not what you were referring to, I apologize for the waste of net.bandwidth. I posted rather than mailed as I thought it might help more than a few newusers (I think I worked with vi for about 3 years before I finally noticed it). Then again, I *always* set it manually (compilers are often less than pleased with unexpected new-lines :-)). Regards, -- Ron Widell, Field Applications Eng. |UUCP: {...}mcdchg!motmpl!ron Motorola Semiconductor Products, Inc., |Voice:(612)941-6800 9600 W. 76th St., Suite G | I'm from Silicon Tundra, Eden Prairie, Mn. 55344 -3718 | what could I know?