Hello Christian,
Christian Brabandt <cblists@256bit.org> a écrit:
> Hi zappathustra!
(Actually, it should be ``Paul Isambert'' as usual, but for the moment
I'm stuck with the Google interface, and I'm registered with my email
address only.)
> On Fr, 12 Apr 2013, zappathustra@free.Fr wrote:
>
> > Marco <netuse@lavabit.com> a écrit:
> > > On 2013–04–12 Ben Fritz wrote:
> > >
> > > > It's not configurable.
> > > >
> > > > { and } strictly use paragraph boundaries, defined as empty lines
> > > > or lines using nroff macros specified in the 'paragraphs' option.
> > > >
> > > > ip uses these but also has an exception for lines containing
> > > > nothing but whitespace.
> > > >
> > > > See :help paragraph and :help ip
> > >
> > > I did read those sections. The 'paragraphs' option with the default
> > > setting "IPLPPPQPP TPHPLIPpLpItpplpipbp" is one of the weirdest vim
> > > options I encountered in a while. Why is it restricted to nroff
> > > macros? It could better take a regex or anything more general than
> > > nroff macros.
> > >
> > > > This behavior annoys me too but it is what it is.
> > >
> > > Good to hear that it's not just me. If there is interest, maybe a
> > > second variable, e.g. 'paragraphsregex' could be implemented and set
> > > to an arbitrary regex as paragraph delimiter. If it's undefined, the
> > > old behaviour takes precedence to remain backwards compatible.
> >
> > That behavior annoys a lot of people; it's even #46 in the wish list:
> > http://www.vim.org/sponsor/vote_results.php
>
> Some time ago¹, I made a patch. Please test. Here is the updated patch
> again (which I seemed to have forgotten to attach in a later message).
>
> ¹) https://groups.google.com/d/msg/vim_dev/6r6qX8W6I_Y/pQPexgLWI6UJ
Ah, nice! (I remember that issue had come up recently.)
I've applied the patch and it's quite good; too bad I'm quite lame
with building Vim myself (I've only recently succeeded in building
the GUI...) and I prefer to use the Debian package. I'll have to wait
until the patch is official!
Anyway I've already found two buglets :) (unless your patch was just a
proof of concept): first, branches won't work:
set paragraphs=/^\s*$\|whatever
doesn't find anything; second (but that's actually inherited from the
original option), it'd be nice if the option were global-local.
Thank you,
Paul
--
--
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.
Friday, April 12, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment