On Sa, 02 Jan 2016, tot-to wrote: > https://bugs.gentoo.org/show_bug.cgi?id=559800 > > Previously, I haven't set textwidth in .vimrc and it was no > autowrapping by default in all files. > > At some point (probably after an upgrade) it stared to do autowrap, but > only for *.txt files, i.e. if I open such file and enter the > command :set tw I get > textwidth=78 > Of course, I can set it manually to 0, but it'll be forgotten on the > next run. So, I've added this string to my ~/.vimrc: set textwidth=0 > But it turned out, that this doesn't change the behaviour at all. > I've tested with latest versions for amd64 and ~amd64, i.e. 7.4.769 and > 7.4.827.
My guess is, you have a filetype plugin for text files, that sets the textwidth. Check your :scriptnames output and as mentioned by Ken, use :verbose set tw? to find out, where it was set. > > Reproducible: Always > > Steps to Reproduce: > 1. echo 'set textwidth=0' >> ~/.vimrc > 2. vim textfile.txt > 3. type ":set textwidth" > Actual Results: > textwidth=78 Please always start with an empty vimrc, e.g. vim -u NONE -N Also see the faq: https://vimhelp.appspot.com/vim_faq.txt.html#faq-2.5 Best, Christian -- Ein Bundeswehrsoldat beraubt maskiert, aber in Uniform eine Bank; auf der Brust prangt stolz sein Namensschild. -- -- You received this message from the "vim_dev" 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_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
