Friday, June 12, 2015

Re: Formatting of lists and paragraphs containing numbers with fo+=n

On Fri, Jun 12, 2015 at 08:35:02AM -0700, Ben Fritz wrote:
> Is this your stackoverflow post? http://stackoverflow.com/q/30783653/1390430

Yes, it's me. I thought I would use all the channels and also because
I've found the post from 2008 here.

> I understand your frustration; I've suffered the same problem in the
> past. But what I commented on stackoverflow is true: Vim does not know
> that you do not intend 2013 and 2014 to be a list. I see that you
> consider each list item to be its own paragraph (indicated by your use
> of trailing space) however not everyone sees it that way, and may
> include a list within a larger paragraph.

OK.

So probably I could resolve half of the problem by disabling the "n"
flag when editing non-list paragraphs with numbers. But still there is a
problem of a list item containing something matching 'formatlistpat'. I
don't know how to solve that problem.

> You may be able to piece together something using the 'formatexpr'
> option; I'm not sure how hard this will be.

I think for now I don't know vim well enough to use it but will make it
pending for the next iteration.

Thanks,

--
Marcin Szewczyk http://wodny.org
mailto:Marcin.Szewczyk@wodny.borg <- remove b / usuĊ„ b
xmpp:wodny@ubuntu.pl xmpp:wodny@jabster.pl

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