Posted By

wolfie on 04/11/07


testing highlight perl syntax vi

Versions (?)

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

 / Published in: Bash

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

  1. Ensure you have a ~/.vim directory
  2. Ensure you have a ~/.vim/ftdetect directory
  4. Create the file ~/.vim/ftdetect/t.vim with this as the contents:
  6. " definition file for testing scripts
  7. au BufNewFile,BufRead *.t set filetype=perl

Report this snippet  

You need to login to post a comment.