vim: *.asp = perl

Useful .vimrc entries for today. Working a project where the files are named *.asp, presumably for historical reasons, but are actually Perl. Thus:

syntax on

filetype on

au BufNewFile,BufRead *.asp set filetype=perl


2 Responses to vim: *.asp = perl

  1. 53485 Laurens Holst 2009-09-25 08:45:39

    ActiveState Perl I guess. Maybe an old IDE of theirs used the extension?

  2. 53486 rbowen 2009-09-25 09:19:46

    No, far from it. It's a project that was inherited from another developer and converted to Perl, but retaining the old file names.

Leave a Reply





About

Some people are heroes. And some people jot down notes. Sometimes, they're the same person. (The Truth. Terry Pratchett)