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 ...)

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

  I want to tell vim that a line starting with ^\s*\\ (a TeX macro at
  the beginning of a line) marks a new paragraph. This way vim with
  automatic formatting wont try to change the following:

    \begin{itemize}
     \item foo
     \item bar
    \end{itemize}

  in the following:

    \begin{itemize} \item foo \item bar \end{itemize}

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:

    From: Stefano Zacchiroli <[EMAIL PROTECTED]>
    To: VIM Development List <vim-dev@vim.org>
    Subject: better user-definition of paragraphs

  is not changed to:
  
    From: Stefano Zacchiroli <[EMAIL PROTECTED]> To: VIM Development List
    <vim-dev@vim.org> Subject: better user-definition of paragraphs

I'm a bit puzzled that there is no support for that, maybe I am missing
something? No one else has ever wanted such a feature?

Thanks in advance,

Cheers.

-- 
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
[EMAIL PROTECTED],debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-

Reply via email to