Gene Kwiecinski wrote: >> Without the first line: <?xml version="1.0" encoding="UTF-8"?> >> works but not with it. >> If the file has the extension html, it works in all of cases. > > What's *probably* happening is that there's some check on the file > contents itself, failing a .htm/.html extension, to determine > whether/not the file's actually html. > > xml is *not* html. html is a subset of sgml with the html #.# dtd (eg, > html3.2, html4.0, etc.). If you want, you can specify *xhtml*. But an > html file inside a xml "wrapper" is just wrong. Wouldn't surprise me if > that was coded into the matchit plugin somehow. "File has a .htm/.html > extension? Nope. Let's see what's inside... First line has '<html...>' > anywhere? Nope. Okay, so it ain't html!"
You are right but if I set "set ft=html" or "set ft=xhtml" it should be forced to be an html file because with the extension .htm/.html, matchit works fine. Thanks, Cesar --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
