" programming/perl specifics set comments=n:#,fb:-,fb:+,fb:* "autocmd! Syntax perl call Set_Syntax_Hilight('perl') call Set_Syntax_Hilight('perl') nmap m a# location where non-default modules liveuse lib '$HOME/comp/perl/private';use lib '$HOME/comp/perl/dist-test'; nmap M a# location where non-default modules liveiuse lib 'modules'; nmap X ause Exporter ();our ( @ISA , @EXPORT , @EXPORT_OK , %EXPORT_TAGS );@ISA = qw(Exporter);@EXPORT = ();%EXPORT_TAGS = ( => [ qw() ]);push @{ $EXPORT_TAGS{'all'} } , @{ $_ } foreach values %EXPORT_TAGS;@EXPORT_OK = @{ $EXPORT_TAGS{'all'} }; nmap ;pfb :r $HOME/comp/perl/modules/.mod-func-pod-start nmap ;pob :r $HOME/comp/perl/modules/.mod-oo-pod-start nmap ;pfun :r $HOME/comp/perl/modules/.mod-func-pod nmap ;pend :r $HOME/comp/perl/modules/.mod-pod-end iab fe foreach iab forea foreach iab refs references iab Ref Reference iab arr array iab Arr Array iab Arref Array reference iab Arrefs Array references iab Arrref Array reference iab Arrrefs Array references iab arref array reference iab arrefs array references iab arrref array reference iab arrrefs array references iab hashef hash reference iab Hashref Hash reference iab hashefs hash references iab Hashrefs Hash references " Vim compiler file " Compiler: Perl syntax checks (perl -Wc) v1.1 " Maintainer: Lukas Zapletal " Last Change: 2001 Sep 10 " Changelog: " " 1.1: fixed ' near "..." ' " 1.0: initial version " " Todo: " Include ' near "..." ' in the error message if exists("current_compiler") finish endif let current_compiler = "perl" " there is no pipes under windows, vi use temp file " and as perl outputs to stderr this have to be handled corectly if has("win32") setlocal shellpipe=1>&2\ 2> endif map :setlocal makeprg=perl\ -c\ %\|make map :setlocal makeprg=perl\ %\|make " Sample errors: " Type of arg 1 to push must be array (not hash element) at NFrame.pm line 129, near ");" " Useless use of a constanst at test.pl line 5. setlocal errorformat=%m\ at\ %f\ line\ %l%.%#, \%-G%.%# " ignore any lines that didn't match one of the patterns above