Tuesday, September 20, 2016

Re: textwidth is fastened at 78, and "Function MyDiff already exists" message pops up when configuration update

On Tuesday, September 20, 2016 at 10:45:07 AM UTC-5, 김재학 wrote:
> Thank you for your immediate responds, Magnus Woldrich!
>
> I did that you said, but it doesn't work. ㅠㅠ
>
> When I input command ":verbose set tw?" in _gvimrc, it works,
> tw was set at 120 in only _gvimrc, but it didn't in other txt files.

You misunderstood.

":verbose set tw?" was not intended as a command in your configuration to fix the problem. It is a debugging tool that you enter interactively to FIND the problem. That command will output the current value of the textwidth option, and also tell you which script set that value.

>
> when I open *.txt files and input command ":set tw=120" directly, it works.
> but it is applied until the file is closed.
>


Most likely, the value is getting set in some ftplugin or in a FileType autocmd for text and C files. You will need to edit that config file, or provide an override in an autocmd or after directory, or some similar solution.


>
> I attached some pictures about my configuration.

WHY?! Next time please just attach the textual config file itself, or copy-paste the text into your email.

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