On Sun, Mar 22, 2015 at 02:16:09PM +0100, Elimar Riesebieter wrote:
> * glts <676c7...@gmail.com> [2015-03-22 02:21 -0700]:

> > On Saturday, March 21, 2015 at 5:12:17 PM UTC+1, porphyry5 wrote:
> > > (...)
> > > 
> > > Thank you, by a happy coincidence it has occurred again, and 
> > >     :verbose set tw?
> > > reveals the culprit to be /usr/share/vim/vim74/ftplugin/vim.vim
> > > maintained by one Bram Moolenaar
> > > rather incontrovertibly proving my claim that this thing was set by vim 
> > > itself.
> > > 
> > > Thank you again, its easy to fix.
> > 
> > Arguably this is a mistake in the vim ftplugin.

> It turns out that vim.vim sets tw=78 only if the user has set tw=0:

> " Format comments to be up to 78 characters long
> if &tw == 0
>  setlocal tw=78
> endif

> It might not be a mistake, though.

a comment above that code implies the textwidth adjustment is there so
comments will be nicely formatted, but (and it sure looks like a bug to
me) the setting applies to the whole buffer, not just the comments

if we were voting on this I'd vote to remove it

-- 
_|_ _  __|_|_ ._ o|  
 |_(_)(_)|_| ||_)||< 
              |      

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to