Re: Formatting text in reply e-mails

2006-12-05 Thread C.G.Senthilkumar.

On Wed, 6 Dec 2006, [EMAIL PROTECTED] wrote:


Vim may very well be able to do that with built-in commands. I use
the external paragraph reformatter 'par-1.52' for this:
For example, to format and justify this reply in vim, I used:
 :'<,'>!par 66j

No, this doesn't answer my question.

My question is not about the formatting ability of vim. Rather, it is
about precisely stating the end of a paragraph in a quoted message that
has leading ">"s.

In the example below, the first paragraph ends with the word
"appropriately." If I type gqap, vim will format the line beginning with
the word "However" too. I don't want that to happen.


I  know   vim  understands  character
sequences that delimit comments in various
programming languages and gqap formats them
appropriately.

However, while  typing a  reply to an  e-mail,
the gqap command


Thanks,
Senthil.


Re: Formatting text in reply e-mails

2006-12-05 Thread dominique . pelle
Vim may very well be able to do that with built-in commands. I use
the external paragraph reformatter 'par-1.52' for this:

  http://www.nicemice.net/par/

For example, to format and justify this reply in vim, I used:

  :'<,'>!par 66j

A patch for 'par' also exists to make it work with Unicode UTF-8.

Cheers
/Dominique


> Hi
>
> I  know   vim  understands  character  sequences   that  delimit
> comments in various programming  languages and gqap formats them
> appropriately.
>
> However, while  typing a  reply to an  e-mail, the  gqap command
> doesn't seem to identify the end  of a paragraph in the original
> message because empty  lines are also preceded by a  ">" or some
> such string. As a result, gqap  formats the rest of the original
> message and kicks me all the way to the end of the file.
>
> Whereas  I'd  like  to  just format  the  current  paragraph,  a
> paragraph in its normal sense, and be placed at the end of it.
>
> In  essence, I  want  to  tell vim  that  ">"  sequences at  the
> beginning of a line is just a leader not a part of the line.
>
> How do I do this?
>
> Thanks in advance.
> Senthil.


Formatting text in reply e-mails

2006-12-05 Thread C.G.Senthilkumar.


Hi

I know vim understands character sequences that delimit comments in
various programming languages and gqap formats them appropriately.

However, while typing a reply to an e-mail, the gqap command doesn't
seem to identify the end of a paragraph in the original message because
empty lines are also preceded by a ">" or some such string. As a result,
gqap formats the rest of the original message and kicks me all the way
to the end of the file.

Whereas I'd like to just format the current paragraph, a paragraph in
its normal sense, and be placed at the end of it.

In essence, I want to tell vim that ">" sequences at the beginning of a
line is just a leader not a part of the line.

How do I do this?

Thanks in advance.
Senthil.

--
Today's fortune:

From 0 to "what seems to be the problem officer" in 8.3 seconds.

-- Ad for the new VW Corrado