On Apr 6, 2:10 pm, zappathus...@free.fr wrote:
> Now I understand, and it's actually quite simple.
> The pattern
> \([^\\n]\)\n\([^\\n]\)
> ...
> and you ended up with
> An
> by y
> because the "n" at the end of the first line was excluded
> from the pattern.
Can be simplified to:
Paul a écrit:
> Thank you Paul for your great suggestions. Even though I still don't quite
> understand why my command fails at seemingly random places,
Now I understand, and it's actually quite simple. The pattern
\([^\\n]\)\n\([^\\n]\)
means two characters separated by a new line, and tho
Thank you Paul for your great suggestions. Even though I still don't quite
understand why my command fails at seemingly random places, it is not
important, and your command works beautifully for my purpose.
I know the second method you mentioned. But I prefer the first method because I
don't wa
Hello Paul,
Paul a écrit:
> I was puzzled by the second line break in the attached file. I want to
> connect all lines that are next to each other (ie there is no blank
> lines between them, the same way how tex defines a paragraph). So I
> issue the following command:
>
> :%s/\([^\\n]\)\n\([^\\n
I was puzzled by the second line break in the attached file. I want to
connect all lines that are next to each other (ie there is no blank
lines between them, the same way how tex defines a paragraph). So I
issue the following command:
:%s/\([^\\n]\)\n\([^\\n]\)/\1 \2/g
However, the result is