Wednesday, April 24, 2013

Re: Consider lines containing a tab a paragraph boundary

Christian Brabandt wrote:

> On Sa, 20 Apr 2013, Bram Moolenaar wrote:
>
> > I wonder if changing 'paragraphs' and 'sections' into a regexp that
> > matches at what's between paragraphs is sufficient. How about this
> > style with two paragraphs:
>
> Did this and updated the example. Would this be acceptable?

Hmm, I think what we really want is to match the text from the end of
one paragraph until the start of the next one. The example with "/^$"
would still work to have empty-line separated paragraphs. Paragraphs
that start with an indent would be found with "/^\s\+".

You could then also allow more than one empty line between paragraphs
with "/^\n*$".

I haven't tried the code, perhaps it already works like that?


--
I noticed my daughter's Disney-net password on a sticky note:
"MickeyMinnieGoofyPluto". I asked her why it was so long.
"Because they say it has to have at least four characters."

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

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