Friday, February 1, 2013

Re: Migrating text from vim to wysiwyg editor

Tim - can you describe what to search help on for that trick? Second time I've seen it today, with the :g/pattern/range -dash- command.  But I couldn't actually get it working for the earlier example.




On Fri, Feb 1, 2013 at 8:46 PM, <vim@tim.thechases.com> wrote:
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:

Post a Comment