Re: vim and regex construct [^...]

2005-05-25 Thread Paul Scott
Bill Marcum wrote: ^M is not the newline character in Linux. Try \r if you want to match the DOS/Windows end-of-line character. \r is the Mac end of line. The DOS/Windows end of line is \r\n. Paul Scott -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Tro

Re: vim and regex construct [^...]

2005-05-22 Thread Bill Marcum
On Sat, May 21, 2005 at 01:30:56AM -0300, Paulo Marcel Coelho Aragão wrote: > I have just observed that vim handles negated character classes [^...] > in an apparently odd fashion: > > [\n] matches \n as expected > [^\n] matches \n ??? > [^^M] doesn't match \n ??? >

Re: vim and regex construct [^...]

2005-05-21 Thread Paulo Marcel Coelho Aragão
s. keeling on 21 May 2005: > > [\n] matches \n as expected > > What does "\n" mean to you? Is it the newline character, or a literal > "n" (sans shell interpretation)? A newline character. > > [^\n] matches \n ??? > > [^^M] doesn't match \n ??? > > > > OBS.: I got ^M ty

Re: vim and regex construct [^...]

2005-05-21 Thread s. keeling
Incoming from Paulo Marcel Coelho Aragão: > I have just observed that vim handles negated character classes [^...] > in an apparently odd fashion: Try it with some normal characters before complicating it with compound/special/meta chars. > [\n] matches \n as expected What does "\n" m