Friday, February 1, 2013

Re: Migrating text from vim to wysiwyg editor

On Fri, 1 Feb 2013 20:09:16 -0700, Chris Schneider wrote:
> vipJ will join a single paragraph's lines.
>
> I'm not good enough with fancier :g/ commands to join each paragraph
> individually.

You could do something like

:g/^\</'{+,'}-j

(assuming you have at least one blank line at the end of the file;
otherwise, you'd have to manually join the last line to the last
paragraph). Alternatively, you could do

:v/^\s*$/norm vipJ

which would have a similar behavior.

-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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: