Or, if you don't want to add that to the top of every test script, you can make vim understand that *.t files are perl by adding this to your .vimrc:
autocmd BufRead *.t set syntax=perl
This also has the advantage of having hilighting already turned on when you are editing a new file that you haven't added the vim comment to yet.
| We're not surrounded, we're in a target-rich environment! |
|---|
In reply to Re: VIM syntax highlighting in test scripts
by jasonk
in thread Editing features for advanced users
by gmax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |