Monday, September 11, 2017

Re: how to redefine paragraphs?

On Mo, 11 Sep 2017, Ben Fritz wrote:

> On Friday, September 8, 2017 at 6:33:56 PM UTC-5, Tony Mechelynck
> wrote:
> > • if the 'paragraphs' option is not empty, then a dot in column 1
> > immediately followed by one of the disjoint character pairs making
> > up 'paragraphs' is a paragraph start. By default, this means one of
> > .IP .LP .PP .QP .P<space> .TP .HP .LI .Pp .Lp .It .pp .lp .ip .bp
>
> Is this option still actually useful to anyone today?
>
> If not, perhaps it's time to extend this option to repurpose it to be
> actually useful in the modern world?

Some time ago I made a patch to allow for regular expressions to define
paragraph and section borders.
https://groups.google.com/forum/#!msg/vim_dev/6r6qX8W6I_Y/pQPexgLWI6UJ

I think the patch is still available here:
https://github.com/chrisbra/vim-mq-patches/blob/master/paragraphs_re

It probably does not apply cleanly anyhow and it might need some more
work. So if someone could test it and we can further define how it
should behave, we can probably finish it up. However, considering the
many todo items, it will probably take a while until this will be merged
but I guess, tests would help ;)


Best,
Christian
--
/|__
///,-`
o o ,
| .' ",
V-V\ ""-------.
: \.
| /.____.\ ||\\
()) ()) "
||| |||
<>> <>>
Transsylvanisches MULI

--
--
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/d/optout.

No comments:

Post a Comment