Saturday, March 21, 2015

Re: What sets textwidth=78

On 2015-03-21 08:57, porphyry5 wrote:
>>>> :verbose set textwidth
>> The next time you see a textwidth setting you don't want, run
>> this command to see where it was set to that value.
>
> Which command?

The ":verbose set textwidth". Note the "verbose" as it's what
instructs Vim to tell you what last set it.

My guess is that it's some plugin/ftplugin that gets activated for
certain files, so your default is 'tw' being 0, but then the plugin
(which the ":verbose set" command above will identify) changes it to
78.

So recreate the scenario in which the tw=78 happens, then issue the
":verbose set" command to find out who the guilty plugin is.

-tim


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