I was trying to make Gvim highlight syntax of a certain type of file(as Perl) using following command
au BufNewFile,BufRead *.bias setf perl
But as the first line of this file doesn't start with a #!/usr/bin/perl. Gvim is not performing syntax highlighting of Perl. Any solution for this ?
Try this in your .vimrc (I think Gvim still uses that)
autocmd BufRead *.bias set filetype=perl
If you just want to do it for a single file then try:
:set filetype=perl