On 2/11/07, Ralph Shumaker <[EMAIL PROTECTED]> wrote:
I've been having fun, playing with regular expressions in vi.  But I'd
like to do more.

How can I do a search that regards line breaks as if they were a space?

If that's not easy, then how can I replace all line breaks with a space
except for line breaks or double line breaks preceding any line that
begins with "^"?

I have a text file that has been line wrapped at about 80 characters.
Each real line begins with the "^".  Each wrapped line does not.  And
each line that begins with "^" is preceded by a blank line.

Text that I want to search for (or replace) can wrap around these line
breaks, but not around the "^".

You might be better off if you first processed the test file to rejoin
the split lines.


--
   carl lowenstein         marine physical lab     u.c. san diego
                                                [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to