X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fftplugin%2Fperl%2Fperl.xpt.vim;h=95b11d6a74af84237c1cfefd3fcfde144c84342b;hb=1031c82c0273516bedd786413c25315fc9bcd572;hp=aa197ebe6907b4c50c3794fc505564ceea0073ad;hpb=1dc3e859418f070a8a58f94d3d1dc87f91a1c385;p=config%2Fdotfiles.git diff --git a/vim/ftplugin/perl/perl.xpt.vim b/vim/ftplugin/perl/perl.xpt.vim index aa197eb..95b11d6 100644 --- a/vim/ftplugin/perl/perl.xpt.vim +++ b/vim/ftplugin/perl/perl.xpt.vim @@ -21,16 +21,21 @@ " You should have received a copy of the GNU General Public License " along with this file. If not, see . + +" Prevent errors if XPTemplate is not installed. +if !exists('g:XPT#ver') + finish +endif + XPTemplate priority=personal XPT perl -XSET year|def=strftime("%Y") #!/usr/bin/perl # `description^ -# Copyright (C) `year^ Simon Ruderich +# Copyright (C) `strftime("%Y")^ Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by