[news.newusers.questions] How does one insert ">"s?

bush@prodigal.psych.rochester.edu (Darren Bush) (10/04/89)

  What's the vi macro for inserting > in the front of a line?  I had it but
  alas I lost it when I cleaned out my home directory...

  Thanks in advance,

	Darren

	P.S.  yes, I've been doing it by hand.  Sheesh.


Darren S. Bush                     "Chiude alfin le sue spoglie angusto sasso,
bush@prodigal.psych.rochester.edu    ratto cosi, che sospirando io dico:
Department of Psychology             -Da la cuna a la tomba e` un breve passo!"
Disclaimer: Karl:Groucho::Darren:George                -Gian Battista Marino

mday@iconsys.UUCP (Matthew T. Day) (10/06/89)

From article <3224@ur-cc.UUCP>, by bush@prodigal.psych.rochester.edu (Darren Bush):
>   What's the vi macro for inserting > in the front of a line?  I had it but
>   alas I lost it when I cleaned out my home directory...

How about:

:map v 0i>^V^[
-- 
+---------------------------------------------------------------------+
| Matthew T. Day, Sanyo/Icon International, Orem, UT (801) 225-6888   |
| Unix System Programmer, ..!uunet!iconsys!mday (mday@iconsys.uu.net) |
+---------------------------------------------------------------------+

edhew@xenitec.on.ca (Ed Hew) (10/08/89)

In article <3224@ur-cc.UUCP> bush@prodigal.psych.rochester.edu (Darren Bush) writes:
>
>  What's the vi macro for inserting > in the front of a line?  I had it but
>  alas I lost it when I cleaned out my home directory...

The command line sequence is:		:g/^/s//> /

Turn it into a macro of your choice.

>	P.S.  yes, I've been doing it by hand.  Sheesh.

Examine the components of the above short sequence, and you'll
never suffer that indignity again.	:-)

>Darren S. Bush 		bush@prodigal.psych.rochester.edu

  Ed. A. Hew       Authorized Technical Trainer        Xeni/Con Corporation
  work:  edhew@xenicon.uucp	 -or-	 ..!{uunet!}utai!lsuc!xenicon!edhew
->home:	 edhew@xenitec.on.ca	 -or-	   ..!{uunet!}watmath!xenitec!edhew
  # This posting has absolutely nothing to do with what I do for a living.