hansm@cs.kun.nl (Hans Mulder) (06/15/91)
In <8000003@hpnmdla.sr.hp.com> stanj@hpnmdla.sr.hp.com (Stan Jaffe) writes: >How about using the UNIX utility ADJUST? Well, the problem is that adjust only exists on some AT&T Unices. Some of us use a BSDish flavour of Un*x and we use fmt(1), e.g. {!}fmt -72 # actually, 72 is the default, so just {!}fmt suffices >{ moves cursor to the start of the paragraph >!} writes out the paragraph to an external utility and replaces text > with the output from that utility. fmt the name of the utility -72 sets the right margin to 72. All line wrapping is done automatically. >I have mapped this to a key in my .exrc file. Use control-M for the return >key: I guess you meant to say "Use control-V control-M to get a return in the map:" map ^A {!}fmt -72 ^V^M For some reason, this thread had the title >> VI: Positioning the cursor ("|") from within a macro doesn't work. Which is an odd thing to say, since "|" works OK from within a macro, provided you quote it with two control-V's, e.g. typing :map v 73^V^V|F r^V^M gets you a macro that breaks the line at the last space before column 73. Not that you need such a macro if your system has either adjust(1) or fmt(1). -- Have a nice day, Hans Mulder hansm@cs.kun.nl
jws@hpcupt3.cup.hp.com (John Stafford) (06/15/91)
stanj@hpnmdla.sr.hp.com Stan Jaffe at HP Network Measurements Div, Santa Rosa writes about using adjust(1)... Alas adjust(1) is, to the best of my knowledge, ONLY available on HP-UX (although some systems have a similar program called fmt).