On 16 Dec 2010, Tim Chase wrote: > 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 > Thanks very much - that works perfectly. Now I must try to understand _how_ it works!
-- Anthony Campbell - a...@acampbell.org.uk Microsoft-free zone - Using Debian GNU/Linux http://www.acampbell.org.uk - sample my ebooks at http://www.smashwords.com/profile/view/acampbell -- 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