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
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 ???
>
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
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
4 matches
Mail list logo