home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!yale!gumby!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!access.usask.ca!ccu.umanitoba.ca!rahardj
- From: rahardj@ccu.umanitoba.ca (Budi Rahardjo)
- Newsgroups: comp.editors
- Subject: Re: Why I love VI
- Message-ID: <1992Aug21.222238.27806@ccu.umanitoba.ca>
- Date: 21 Aug 92 22:22:38 GMT
- References: <1992Aug10.100142.2416@ccu.umanitoba.ca> <1992Aug21.040413.28174@cs.umb.edu>
- Sender: news@ccu.umanitoba.ca
- Organization: University of Manitoba, Winnipeg, Canada
- Lines: 36
- Nntp-Posting-Host: venus.cc.umanitoba.ca
-
- mzraly@ra.cs.umb.edu (Michael S. Zraly) writes:
-
- >rahardj@ccu.umanitoba.ca (Budi Rahardjo) writes:
- >> [... deleted ...]
-
- > Centering is easy in vi, just pipe text through a simple awk script,
- >e.g.
- > awk 'length>0 {for(x=(72-length)/2;x>0;--x)printf(" "); print}'
- >map this if you need to use it frequently.
-
- You don't have to do that. There is a macro that can center the string
- (it should be in one of the vi-archive sites). It does some animation
- when doing the centering... :-) (sorry I lost it somewhere...)
-
- > If you must justify *AND* fill, pipe through nroff (and uniq, to
- >remove extra blank lines). Use your favorite macro package.
-
- I can do that, but I have to use all those (dot) commands.
- [Yes, I do use nroff when creating man pages]
- I prefer to have a "clean" text.
-
- >(One thing
- >I don't like about TeX is its inability to generate ASCII output, but
- >that's only a peripheral issue here).
-
- There are several programs that can do that. dvitty (or dvi2tty ?)
- is one of them. The output is not pretty but readable.
-
- BTW, there is text editor that does what I want.... CRISP.
- I am still trying to convince my boss to buy one :-)
-
-
- -- budi
- --
- Budi Rahardjo <rahardj@ccu.umanitoba.ca>
- Unix Support - Computer Services - University of Manitoba
-