Re: ...curiosity

2007-04-29 Thread Fredrik Gustafsson
On Sun, Apr 29, 2007 at 11:24:16AM -0500, Tim Chase wrote: > > Five identical characters would be: /\[a-z,A-Z]\{4}/ I believe... > > This would be any 4 characters in your set [a-z,A-Z] (including > the comma), it would match any of the following: > > > > > A,b, > ,A,Z >

Re: ...curiosity

2007-04-29 Thread Tim Chase
> Five identical characters would be: /\[a-z,A-Z]\{4}/ I believe... This would be any 4 characters in your set [a-z,A-Z] (including the comma), it would match any of the following: A,b, ,A,Z > Numbers would be: /\d\d\{2}\d/ This also would match things like 1221 12

Re: ...curiosity

2007-04-29 Thread Tim Chase
> I am curious whether this kind of meta-regexp is > possible with vim: > > I want to match a certain kind of pattern and want to > do "something" with it. > > The kind of pattern does not describe a group of chars > but their relation to each other. > > Example: > I want to search for

Re: ...curiosity

2007-04-29 Thread Fredrik Gustafsson
On Sun, Apr 29, 2007 at 04:17:21PM +0200, [EMAIL PROTECTED] wrote: > Hi, > > I am curious whether this kind of meta-regexp is > possible with vim: > > I want to match a certain kind of pattern and want to > do "something" with it. > > The kind of pattern does not describe a group of chars

...curiosity

2007-04-29 Thread meino . cramer
Hi, I am curious whether this kind of meta-regexp is possible with vim: I want to match a certain kind of pattern and want to do "something" with it. The kind of pattern does not describe a group of chars but their relation to each other. Example: I want to search for a number sequence

Re: Only curiosity: Optimizing a vimtip (modified)

2006-10-24 Thread Benji Fisher
On Tue, Oct 24, 2006 at 08:47:46AM -0400, Dave Roberts wrote: > Meino Christian Cramer wrote: > >Hi, > > > > I read of a vimtip, that one can move/copy lines of a text which > > match a cvertina pattern to line 0 (top) of the text. > > > > This is a nice trick to gather material for a kinda quick'n

Re: Only curiosity: Optimizing a vimtip (modified)

2006-10-24 Thread Dave Roberts
Meino Christian Cramer wrote: Hi, I read of a vimtip, that one can move/copy lines of a text which match a cvertina pattern to line 0 (top) of the text. This is a nice trick to gather material for a kinda quick'n'dirty "Table of contents" it has one drwaback: The copied lines are in revers

Re: Only curiosity: Optimizing a vimtip (modified)

2006-10-24 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, I read of a vimtip, that one can move/copy lines of a text which match a cvertina pattern to line 0 (top) of the text. This is a nice trick to gather material for a kinda quick'n'dirty "Table of contents" it has one drwaback: The copied lines are in revers

Only curiosity: Optimizing a vimtip (modified)

2006-10-23 Thread Meino Christian Cramer
Hi, I read of a vimtip, that one can move/copy lines of a text which match a cvertina pattern to line 0 (top) of the text. This is a nice trick to gather material for a kinda quick'n'dirty "Table of contents" it has one drwaback: The copied lines are in reversed order. Surely it is possibl