On Jul 16, 2011, at 3:25 PM, Tony Mechelynck wrote:

>> In Vim you can define the type of a file using 2 methods:
>> 
>>   * checking its extension, or filename
> 
> This includes telling Vim that anything in $HOME/foo/bar/ is of filetype baz 
> (/home/eric/foo/bar/* is a valid Unix glob for a "filename" here).

Thanks, Tony. As I said to, Thilo. I think this may be the best solution in 
this case. The files in question are all in subdirectories of a single 
directory. I'm sorry, though. I'm a little dense. Javier's reference led me to 
check out all the help related to new-filetype. I'm uncertain how to use the 
information to define the filetype with these files.

C.2. of the new-filetype help suggests creating a file with commands to detect 
the filetype. Putting that together with your's and Thilo's suggestion, would 
putting something like the following in my .vimrc do the job?

au! BufRead,BufNewFile *.~/foo/bar/*            setfiletype markdown

Probably that's all garbled, but perhaps it will enable you to point me in the 
right direction.

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA  USA
[email protected]




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

Reply via email to