home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14660 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.7 KB  |  37 lines

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