Hi!

> When does Vim do automatic formatting when 'textwidth' is
> zero?  I don't see an obvious situation.  Looking at the
> code it doesn't seem to be possible.

As I wrote:

1. gvim -u NONE -N
2. set formatoptions+=tcroqn2ba

Just write anything... the text wraps at column 80. The option
'textwidth' is zero and the option 'wrapmargin' is zero, too.
That the text wraps at 80, was what I did not understand. It
is a hard wrapping, not a soft wrapping. Just maximize gVim.
The text wraps at 80 even if the window has more than 100 cols.

> You still haven't told us how you cause the formatting to
> take place.

See my mail from 05.05.2006 10:32:07:
 
> I don't understand the following behavior:
> 
> 1. gvim -u NONE -N
> 2. set formatoptions+=tcroqn2ba
> 
> I maximize Vim now, such that I have really many columns.
> Vim behaves as if textwidth were 80 although it is 0. Why?
> 
> I am using gVim 7.0g03 but I think, that this was the same
> with 6.4.

I am referring to the following statement of your answer: 

> If you do formatting for some reason and 'textwidth' is zero
> then 80 is used.

There are two possibilities:

Does this statement hold for autoformatting? If the answer is
'yes', then this is a feature and the documentation is a
little bit misleading. If the answer is 'no', then I have
found a bug.
 
Best wishes,
Georg





Send instant messages to your online friends http://uk.messenger.yahoo.com 

Reply via email to