[za-pm] file extension match to syntax highlighting in vim

Nick Cleaton nick at cleaton.net
Mon Jun 6 02:26:57 PDT 2011


On Sun, Jun 5, 2011 at 12:45 PM, Anne Wainwright
<anotheranne at fables.co.za> wrote:
>
> when I have run perltidy I like to compare to the original file, but
> the extension .pl.tdy does not pick up.
>
> I have been looking this morning but cannot find what I need -
> somewhere to add in '.tdy' so that it gets the perl syntax highlighting.
>
> can someone give me a pointer please?

In your .vimrc:

autocmd BufRead *.pl.tdy setlocal filetype=perl


More information about the Za-pm mailing list