Saturday, April 9, 2011

Re: Any non-programmer users of Vim here?

On Apr 9, 2011, at 4:20 AM, Anthony Campbell wrote:

> When I have to import a Vim file into OOWriter (Libreoffice as it now
> is) I use this command, kindly supplied by Tim Chase in an earlier
> thread (thanks, Tim):
>
> :g/\%^\|\n\@<=\s*\n/,/\n\n\|\%$/j
>
> This converts each paragraph into a continuous line. It also removes the
> spaces between the paragraphs. You want that if you are going to use
> indented paragraphs in OOWriter, but if you want block paragraphs
> (spaces between paragraphs, no indents) you need to run a further
> command to reinsert the spaces:
>
> :%s/$/\r

Thanks, Tony. I've flagged this for future reference.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eeweir@bellsouth.net


--
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

No comments: