Re: Line break without \n or \r?

2013-04-06 Thread Bee
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:

Re: Line break without \n or \r?

2013-04-06 Thread zappathustra
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

Re: Line break without \n or \r?

2013-04-06 Thread Paul
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

Re: Line break without \n or \r?

2013-04-06 Thread Paul Isambert
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

Line break without \n or \r?

2013-04-05 Thread Paul
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