Return to Snippet

Revision: 2738
at April 11, 2007 04:45 by wolfie


Initial Code
Ensure you have a ~/.vim directory
Ensure you have a ~/.vim/ftdetect directory

Create the file ~/.vim/ftdetect/t.vim with this as the contents:

" definition file for testing scripts
au BufNewFile,BufRead *.t         set filetype=perl

Initial URL

                                

Initial Description
This allows you to use perl syntax highlighting in vi for test scripts that use the ".t" file extension

Initial Title
How to add a '.t' filetype to vi's syntax highlighting

Initial Tags
perl

Initial Language
Bash