On Thursday, June 27, 2013 3:29:56 PM UTC-5, Bram Moolenaar wrote: > Ben Fritz wrote: > > > On Thursday, June 27, 2013 2:35:04 PM UTC-5, Andy Wokula wrote: > > > > > > I don't want lines starting with or containing "Vim:" to define a > > > modeline. > > > > > > Several of my (text) files yell errors now. > > > > > > > Maybe Vim could examine what it thinks is a modeline first, and then > > refuse to execute it if anything invalid is found? > > > > In TOhtml I had to intentionally mangle modelines using character > > references, so that a modeline in the file to be converted didn't > > convert to an invalid modeline that Vim proceeded to yell about. > > > > If Vim would just silently ignore invalid modelines that would prevent > > such a need and also solve your problem. > > And make it very difficult to find a typo in an option name... > > Well, we could silently ignore bogus modelines unless 'verbose' is set. > > But users will need to read the help to figure that out. >
What if we silently ignore bogus modelines if they start with Vim: instead of "vim:"? Accepting with the wrong capitalization is mostly a correction of user error. In other words, accept as "vim: " always (throwing errors for bad options), accept as "Vim: " only if it won't cause errors. I don't care either way, I've been careful to always use "vim" because that's all that has worked so far. TOhtml will need an update to ignore case when mangling the modeline if "Vim" continues to be accepted at all. -- -- 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/groups/opt_out.
