home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14804 < prev    next >
Encoding:
Internet Message Format  |  1992-12-21  |  2.1 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!sobeco!dchouina
  2. From: dchouina@sobeco.com (Daniel Chouinard)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: how do you center a line in vi/ex ???
  5. Message-ID: <1992Dec18.174957.16697@sobeco.com>
  6. Date: 18 Dec 92 17:49:57 GMT
  7. References: <fish.724035067@news2.gsfc.nasa.gov> <1992Dec11.040216.14337@umbc3.umbc.edu> <1992Dec14.054911.9921@news.mentorg.com> <1giql2INNn58@chnews.intel.com>
  8. Organization: Sobeco Ernst & Young
  9. Lines: 37
  10.  
  11. In <1giql2INNn58@chnews.intel.com> bhoughto@sedona.intel.com (Blair P. Houghton) writes:
  12.  
  13. >In article <1992Dec14.054911.9921@news.mentorg.com> thiam-chye_sim@mentorg.com writes:
  14. >>In article <1992Dec11.040216.14337@umbc3.umbc.edu>, rouben@math9.math.umbc.edu (Rouben Rostamian) writes:
  15. >>|> map v :s/^[     ]*//^M:s/[     ]*$//^M$ma81a 81^V|D`alxd0:s/  / /g^M$p
  16. >>
  17. >>I added the statement to my .exrc file, but it does not do its job.
  18. >>There was a message flash across the screen when I invoke, how can I view
  19. >>that message. Is it log somewhere or how can I get the screen to freeze?
  20.  
  21. >It's not logged and the screen won't freeze unless you
  22. >have XON/XOFF (^Q/^S) or something.
  23.  
  24. >Two things may be happening.
  25.  
  26. >1.  You didn't add the escape character that was missing:
  27. > [...] rest of message deleted (This is getting long!)_
  28.  
  29. I know I'm not replying to the right post but has that ever stopped anyone?
  30.  
  31.   Here's the definitive trick for those who have problems making this
  32.   thing work.  Create this is a shell script:  (Type in exactly as shown)
  33.  
  34. #!/bin/sh
  35. (
  36.   echo "map q :s/^[\t\040]*//\026\r:s/[\t\040]*\$//\026\r\$ma81a\040\033\c"
  37.   echo "81\026|D\`alxd0:s/\040\040/\040/g\026\r\$p"
  38. ) >> $HOME/.exrc
  39.  
  40. (Make sure you're running the right version of echo!)
  41.  
  42. After typing this in, run it and edit your .exrc .
  43. --
  44. "If we do not succeed, we run the risk of failure." -D.Q.| dchouina@sobeco.ca
  45. - The rain it raineth every day, upon the just and the   | Daniel Chouinard
  46.   unjust fella.  But more on the just because the unjust | Sobeco Ernst & Young
  47.   had the just's umbrella.                               | Montreal, PQ, Canada
  48.