I'm not worried about the original line breaks. I think
these controls were put in by the WP to be
reformatable.ends of lines. But they don't seem to be
ordinary CR/LF.
Anyway, the problem is that -J is not recognized as a
control sequence by vim so I can't search for it or
replace it. The best plan I've come up with so far is to
search for ^M, find it, and do 2x to delete both ^M and
the next character (i.e. -J). By putting this in a
register I can repeat it a number of times.
If you could, would it be possible to post an excerpt of a dump
of the file through xxd/od? This will help determine exactly
what the file contains at these junctures. Or, perhaps you can
even determine from such output exactly what is following the CR.
If it truly is a CR/LF pair, and your 'ff' is "unix", then using
:%s/\r\n
should do the trick.
Something like
xxd infile.wp | sed -n '30,50p'
to extract lines 30-50 of the dump where the behavior/characters
shows up (adjusting those line numbers until you have a window of
interest) will allow for a more isolated piece if you intend to
post some to the list.
Alternatively, if there are characters you don't use in your
file, you could do something like
tr '\r\n' '#@' < infile.wp > outfile.txt
to replace any instance of either CR or LF with a hash or at-sign
respectively (choose your own characters according to what you
know of the file contents) which will make them easier for you to
spot.
Just a few more ideas,
-tim