Monday, March 23, 2015

Re: What sets textwidth=78

On Mon, 23 Mar 2015 11:44:36 -0700 (PDT) porphyry5 <gl00637@gmail.com> wrote:

> On Sunday, March 22, 2015 at 12:05:37 PM UTC-7, gevisz wrote:
> > On Sun, 22 Mar 2015 09:46:01 -0500 toothpik <toothpik6@gmail.com> wrote:
> >
> > > On Sun, Mar 22, 2015 at 02:16:09PM +0100, Elimar Riesebieter wrote:
> > > > * glts <676c7473@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
> > >
> >
> > Of course, it should be removed, unless a humiliation on users is indented by design.

I've meant "intended by design".

> Nice play on dyslexia!

Have not got your joke.

I also quite irritated by this persistent change from tw=0 to tw=78 sometimes.

--
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment