On Fri, Apr 25, 2008 at 04:53:55PM +0200, Mathias Brodala wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi.
> 
> Debian Bug Tracking System, 25.04.2008 15:48:
> > On Fri, Apr 25, 2008 at 01:34:23PM +0200, Mathias Brodala wrote:
> >> Since debian.vim sets the filetype to mail, tw should be set to 72 
> >> according to
> >> mail.vim, but strangely isn't.
> > 
> > mail.vim only changes 'textwidth' if it is at its default value of 0.
> > Otherwise, it follows the value the user has set it to, presumably in their
> > ~/.vimrc.  I'm closing this bug since the behavior is as intended.
> 
> Yeah, I read this in mail.vim. But why doesn’t this work on my system? I
> don’t specify any value for textwidth anywhere, so it should be 0. But
> there is no automatic linebreak if I type a bugreport.
> 
> Also :echo &tw gives me 0 as response. What gives?

I just tested it on my system with the following setup:

 $ cat tmp.vim
 source /etc/vim/vimrc
 filetype plugin indent on
 $ touch reportbug.foo
 $ vim -u tmp.vim -N reportbug.foo
 :echo &tw

'textwidth' is properly set to 72, so it looks like something else is changing
your 'textwidth' setting or you do not have filetype plugins enabled.  Make
sure ":filetype" reports at least "filetype detection:ON plugin:ON".  Also
verify that /usr/share/vim/vim71/ftplugin/mail.vim shows up in the output of
":scriptnames" and you can see what last set 'textwidth' by running
":verbose set tw?".

Hope this helps narrow down the issue.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to