When I try to view a *.rdf file, for instance the attached install.rdf from the ChatZilla extension to Firefox or SeaMonkey, Vim sets "redif" filetype and displays everything after the XML header in black on red (highlight group redifIncorrectBeginningOfFile, linking to Error). In order to clear the error (and since there is no specific syntax for RDF/XML), I have to set the filetype manually to XML.

Strangely enough, there is no syntax script for redif: all syntax commands for that syntax are in the filetype-plugin, which is incorrect procedure by Vim standards. In fact, AFAICT, $VIMRUNTIME/ftplugin/redif.vim is actually a syntax script, not a filetype-plugin, and ought to be in syntax/ instead of in ftplugin/.


What should I do? What should other users like me do in order to have their RDF files correctly identified as XML-serialized Resource Description Framework manifests and not as whatever "redif" might be?


See:
        http://en.wikipedia.org/wiki/Resource_Description_Framework
        http://en.wikipedia.org/wiki/RDF/XML
        http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/
        http://www.w3.org/TR/rdf-syntax-grammar/


Best regards,
Tony.
--
Pohl's law:
        Nothing is so good that somebody, somewhere, will not hate it.

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


Attachment: install.rdf
Description: application/rdf

Raspunde prin e-mail lui