home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!olivea!charnel!sifon!thunder.mcrcim.mcgill.edu!sobeco!dchouina
- From: dchouina@sobeco.com (Daniel Chouinard)
- Newsgroups: comp.unix.questions
- Subject: Re: how do you center a line in vi/ex ???
- Message-ID: <1992Dec18.174957.16697@sobeco.com>
- Date: 18 Dec 92 17:49:57 GMT
- References: <fish.724035067@news2.gsfc.nasa.gov> <1992Dec11.040216.14337@umbc3.umbc.edu> <1992Dec14.054911.9921@news.mentorg.com> <1giql2INNn58@chnews.intel.com>
- Organization: Sobeco Ernst & Young
- Lines: 37
-
- In <1giql2INNn58@chnews.intel.com> bhoughto@sedona.intel.com (Blair P. Houghton) writes:
-
- >In article <1992Dec14.054911.9921@news.mentorg.com> thiam-chye_sim@mentorg.com writes:
- >>In article <1992Dec11.040216.14337@umbc3.umbc.edu>, rouben@math9.math.umbc.edu (Rouben Rostamian) writes:
- >>|> map v :s/^[ ]*//^M:s/[ ]*$//^M$ma81a 81^V|D`alxd0:s/ / /g^M$p
- >>
- >>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?
-
- >It's not logged and the screen won't freeze unless you
- >have XON/XOFF (^Q/^S) or something.
-
- >Two things may be happening.
-
- >1. You didn't add the escape character that was missing:
- > [...] rest of message deleted (This is getting long!)_
-
- I know I'm not replying to the right post but has that ever stopped anyone?
-
- Here's the definitive trick for those who have problems making this
- thing work. Create this is a shell script: (Type in exactly as shown)
-
- #!/bin/sh
- (
- echo "map q :s/^[\t\040]*//\026\r:s/[\t\040]*\$//\026\r\$ma81a\040\033\c"
- echo "81\026|D\`alxd0:s/\040\040/\040/g\026\r\$p"
- ) >> $HOME/.exrc
-
- (Make sure you're running the right version of echo!)
-
- After typing this in, run it and edit your .exrc .
- --
- "If we do not succeed, we run the risk of failure." -D.Q.| dchouina@sobeco.ca
- - The rain it raineth every day, upon the just and the | Daniel Chouinard
- unjust fella. But more on the just because the unjust | Sobeco Ernst & Young
- had the just's umbrella. | Montreal, PQ, Canada
-