vim tip: getting vim to see your .t files as perl

Al Tobey albert.tobey at priority-health.com
Wed Sep 24 09:19:23 CDT 2003


In the spirit of tomorrow's meeting, here's a little tip to make writing
tests easier/more fun.  Now you can have them with syntax highlighting
in vim.

Put the following text into your ~/.vim/filetype.vim
au BufNewFile,BufRead *.t setf perl

On windows, same thing, but the file is going to be wherever you told
vim to put your user preferences.  On my system, it looks like I could
drop it into C:\Vim\filetype.vim.  You could also add it to
C:\Vim\vim62\filetype.vim, which will get overwritten if you ever
upgrade vim.

Have fun,
-Al




** ** **  PRIVILEGED AND CONFIDENTIAL  ** ** **
This email transmission contains privileged and confidential information 
intended only for the use of the individual or entity named above.  Any 
unauthorized review, use, disclosure or distribution is prohibited and 
may be a violation of law.  If you are not the intended recipient or a 
person responsible for delivering this message to an intended recipient, 
please delete the email and immediately notify the sender via the email 
return address or mailto:postmaster at priority-health.com.  Thank you.




More information about the grand-rapids-pm-list mailing list