Saturday, July 16, 2011

Re: Establishing filetype for a class of documents

On Jul 16, 2011, at 12:59 PM, Javier Rojas wrote:

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

As I understand it, the script recommended will inspect the content of o [new?] file and assign a filetype accordingly.

If that is correct, I don't know what content should be specified.

Is there a way to determine the filetype of a specific file?

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eeweir@bellsouth.net


--
You received this message from the "vim_use" 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

No comments: