> > You can check the contents of a file to figure out its filetype. Check
> >
> > :help new-filetype-scripts
>
> Thanks Javier. The help might help, but what I would like to do would be to include a class of files in an existing filetype, and to do it without relying on the extent, as these files do not have an extent and cannot be given one.
>
> It was my understanding that there are other features that can be used to establish a filetype or to include a class of files in it.
In Vim you can define the type of a file using 2 methods:
* checking its extension, or filename
* checking its contents, if the filename has no useful info for
defining the filetype.
The help section I pointed you to shows how to check the content of a
file to define its filetype.
--
Javier Rojas
GPG Key ID: 0x24E00D68
No comments:
Post a Comment