On Fri, Aug 22, 2014 at 10:41 AM, Tony Mechelynck < [email protected]> wrote:
> If there's no "quick" ftdetect rule (by the filename), there might be a > "slow" ftdetect rule (by the file contents). > I meant quick in terms of effort to set up, actually. I'd rather drop any contentious changes from this patch and handle them as follow-up. Not setting some options mean you get the vimrc global default if any, or > failing that, the Vim default (or the Vi default if 'compatible' is set). > For instance for HTML I get fo=tq which is set by :setglobal in my > ~/.vimrc, but for XML I get fo=croql which is set by :setlocal in the XML > ftplugin. > Right, but the vim defaults are often annoying for given filetypes. For instance, depending on your vim settings, the default comments value makes it so typing "//foo<Enter>" tries to continue a "comment" on the next line. So if there's a correct value for your filetype, it's best to configure that when you define a filetype. Anyway, that's a tangent. David -- -- 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.
