> Yes that will work.
>
> A better way to do that is to edit your:
> .vim/filetype.vim
> Or
> Vimfiles\filetype.vim
>
> And clone an entry that does the same thing as Taylor mentioned in his autocmd. You will see other similar entries.
>
> HTH
> --
> David Fishburn
>
> On Dec 30, 2010, at 1:39 PM, Taylor Hedberg <tmhedberg@gmail.com> wrote:
>
> > You could use an autocommand in your .vimrc to set the filetype
> > automatically based on the file extension, e.g.:
> >
> > au BufNewFile,BufRead *.prc setl ft=sql
> >
Thanks Taylor and David. That's exactly what I had been searching for. Life is good again. :-)
Roy
No comments:
Post a Comment