On Wed, Sep 27, 2006 at 01:10:12PM +0200, Stefano Zacchiroli wrote: > Hi all, > > playing with formatoptions+=a I stumbled on the 'paragraphs' option > and I must confess I feel it's quite dumb (probably due to compatibility > issue with old vi? don't know ...)
Yes, I think that is the problem. Note that ":help 'paragraphs'" is *not* marked with "{not in Vi}". I think this is already mentioned in todo.txt: - Be able to redefine where a paragraph starts. For "[[" where the '{' is not in column 1. > My main problem is that I want a way to define where paragraphs start, > ... even if I'm not writing nroff! Two use cases that may clarify my > needs: > > 1) TeX [snip] > 2) Mail > > Similarly, I usually write mails in mutt editing headers. I want to > tell vim that a line starting with ^\u\U+: (an header name at the > beginning of a line) marks a new paragraphs. Such that the following: I have been meaning to do that, with some folding and so forth. Do you have anything worth sharing in ftplugin/mail.vim , or do you use anything that is already posted on vim.org ? HTH --Benji Fisher