home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!news.mentorg.com!hp_mgs1!simtc
- From: simtc@hp_mgs1.mentorg.com (Sim Thiam Chye)
- Subject: Re: how do you center a line in vi/ex ???
- Message-ID: <1992Dec14.054911.9921@news.mentorg.com>
- Sender: simtc@hp_mgs1 (Sim Thiam Chye)
- Date: Mon, 14 Dec 1992 05:49:11 GMT
- Reply-To: thiam-chye_sim@mentorg.com
- References: <fish.724035067@news2.gsfc.nasa.gov> <1992Dec11.040216.14337@umbc3.umbc.edu>
- Nntp-Posting-Host: hp_mgs1.mentorg.com
- Organization: Mentor Graphics Corporation
- Keywords:
- Followup-To:
- Lines: 21
-
- In article <1992Dec11.040216.14337@umbc3.umbc.edu>, rouben@math9.math.umbc.edu (Rouben Rostamian) writes:
- |> This is exactly a question I posed to this newsgroup a couple of years
- |> ago. I received a very clever solution from someone whose name I
- |> unfortunately do not recall. Here is his solution, extracted from
- |> my .exrc file:
- |>
- |> map v :s/^[ ]*//^M:s/[ ]*$//^M$ma81a 81^V|D`alxd0:s/ / /g^M$p
- |> Rouben Rostamian
-
- I added the statement to my .exrc file, but it does not do its job.
- There was a message flash across the screen when I invoke, how can I view
- that message. Is it log somewhere or how can I get the screen to freeze?
-
- --
- *************************************************************************
- * _/_/_/_/ _/_/_/_/_/ _/_/_/_/ Sim Thiam Chye *
- * _/ _/ _/ Mentor Graphics (S) Pte Ltd *
- * _/_/_/_/ _/ _/ Phone: 8709-265 *
- * _/ _/ _/ Email: simtc@em-sp01.mentorg.com *
- *_/_/_/_/ _/ _/_/_/_/ *
- *************************************************************************
-