From: "A.J.Mechelynck" <[EMAIL PROTECTED]>
Subject: Re: Two """problems"""
Date: Fri, 15 Sep 2006 16:54:02 +0200
> Meino Christian Cramer wrote:
> > From: Pete Johns <[EMAIL PROTECTED]>
> > Subject: Re: Two """problems"""
> > Date: Fri, 15 Sep 2006 14:19:22 +1000
> >
> > Hi Pete !
> >
> > Thank you for "disassembling" the hex into mnemonics! :O)
> >
> > One question remains in my head:
> >
> > if /.\{73,}/ find all lines, for what is the "g" for?
> > I mean...more than finding the whole line in the whole line make
> > no sense to me (and obviously "only to me" ;) ...
> >
> > Vim - the text assemble ;)))
> >
> > Keep hacking!
> > mcc
>
>
> /.\{73,}/ by itself would just find the _next_ line longer than 72,
> possibly wrapping to the beginning if it wasn't found after the cursor.
>
> g/pattern/excommand is the ":g[lobal]" command (see ":help :g"): it
> executes ":excommand" on all lines matching /pattern/. The name of the
> "grep" program comes from the Vi command ":g/re/p" where "re" means
> "regular expression" (i.e. pattern) and "p" means ":p[rint]".
>
>
> Best regards,
> Tony.
...and then I was struck by (en-)lightning ! WOOOSH!
g/Thanks a lot, Tony! :)
Have a nive weekend !
mcc