Re: Simple search across lines?



> Preben 'Peppe' Guldberg wrote:

> [on ignoring newlines when searching]

> If you ignred newlines as a character, the "you\ndid" sequence above
> would not be destinguished from "youdid", so you would not match start
> of word before did.

I see, I had assumed that there would be a white space in there. I
guess that isn't needed is it?

> > Since the philosophy of vim seems to be to minimize the number of key
> > strokes, I had hoped that there might be some search sequence that
> > would make the match ignore all new line characters.

> Sometimes things cannot be generalised very easily.

That is what I was afraid of. It sounds like I need to learn something
about writing vim functions.

Thanks,
Shawn

Peppe

.



Relevant Pages

  • Re: user defined function that converts string to float
    ... > I need user defined function that converts string to float in c. ... initial, possibly empty, sequence of white-space characters (as ... point character, then an optional exponent part as defined in ... then a nonempty sequence of hexadecimal digits ...
    (comp.lang.c)
  • Re: Check for Common character sequence ( I will pay)?
    ... Dude, programming is all problem-solving. ... You need to identify character sequences of 3 or more characters that appear ... in more than one string. ... and test each 3-character sequence that results. ...
    (microsoft.public.dotnet.framework)
  • Re: Check for Common character sequence ( I will pay)?
    ... Do I need to return an array? ... You need to identify character sequences of 3 or more characters that appear ... in more than one string. ... and test each 3-character sequence that results. ...
    (microsoft.public.dotnet.framework)
  • Re: Check for Common character sequence ( I will pay)?
    ... Yes you are returning an array of FoundString objects. ... in more than one string. ... This means that you have to identify sequences 1 character at a time, ... Again, obviously, if the 3-character sequence doesn't match, neither will ...
    (microsoft.public.dotnet.framework)
  • Re: Cohens paper on byte order
    ... A sequence of two bytes, ... Therefore the bytes in AES ... I meant by character by character.) ... posts of the groups with certain ...
    (sci.crypt)