in reply to regexp operator -- same mistake over and over again

My other favorite typo is '>-'; as in $ref >- method(). I need to learn how to do edit macros in vi().

----
I Go Back to Sleep, Now.

OGB

  • Comment on Re: regexp operator -- same mistake over and over again

Replies are listed 'Best First'.
(OT) Re: Re: regexp operator -- same mistake over and over again
by revdiablo (Prior) on Jan 22, 2004 at 22:31 UTC

    A "macro edit" in vi? Easy money (unless I misunderstand what you mean, which is entirely possible):

        :%s/>-/->/g