On Tue, Oct 7, 2008 at 8:57 AM, A. S. Budden <[EMAIL PROTECTED]> wrote:
>
> 2008/10/7 Bob Hiestand <[EMAIL PROTECTED]>:
>> You could do something like the following (untested):
>>
>> :auto BufRead * if expand('%') =~ '^/some/directory'|set 
>> ft=somefiletype|endif
>
> Wouldn't expand('%:p') be better?
>
> :help expand()

I don't think it matters, as the matching is just testing to see if
the file name starts with that path.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to