Path: utzoo!attcan!uunet!jarthur!usc!wuarchive!rex!uflorida!mlb.semi.harris.com!trantor.harris-atd.com!x102c!gbastin From: gbastin@x102c.harris-atd.com (Gary Bastin 60293) Newsgroups: comp.editors Subject: Re: Vi's (auto-fill-mode) Message-ID: <5352@trantor.harris-atd.com> Date: 25 Jan 91 14:24:50 GMT References: <1991Jan24.225511.3375@massey.ac.nz> Sender: news@trantor.harris-atd.com Reply-To: gbastin@x102c.ess.harris.com (Gary Bastin 60293) Organization: Harris Corporation GSS, Melbourne, Florida Lines: 21 In article <1991Jan24.225511.3375@massey.ac.nz> R.Singh@massey.ac.nz (R. Singh) writes: >This might be a stupid one. How can you get Vi to wrap your sentences around and >insert CR's at the end of each line. I know it is possible to do this literally >but how do you get it to keep the words intact and not cut a sentence in a >middle of a word. For EMACS users, an equivalent of the (auto-text-fill). >Thanx The way I have done it is to include the following two lines in a file called .exrc (ex editor run command file); of course, only the first line does the wrapping-- the second is a comment so I can remember how to do it for some other line width :-) set wrapmargin=8 " Automatic CR at <= 80 - 8 (72nd) column for vi editor. This is very handy to have; it even works for usenet when I fall into the default editor, which I have set to be vi, of course! Good Luck! Gary Bastin, WB4YAF /-/-/ Internet: gbastin@x102c.ess.harris.com Mail Stop 102-4826 | phone: (407) 729-3045 Harris Corporation GASD | P.O.B. 94000, Melbourne FL 32902 Speaking from, but not for, Harris!