Sunday, March 22, 2015

Re: What sets textwidth=78

* 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.

Elimar
--
You cannot propel yourself forward by
patting yourself on the back.

--
--
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: