On 12/16/2010 10:05 AM, Anthony Campbell wrote:
That joins ALL the lines. What I need to do is to have each paragraph as
a contimuous line, so that when I import the file into oowriter it will
be easily editable.

You might try:

  :g/\%^\|\n\@<=\s*\n/,/\n\n\|\%$/j

It doesn't leave a blank space between each paragraph, but since each paragraph is pulled into its own line, you can easily post-process them back in:

  :%s/$/\r

(that may add an extra at the bottom...a small price of clean-up to pay)

-tim



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to