X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fftplugin%2Fperl%2Fperl.xpt.vim;h=672d2c582f8ef36097dbb2ce1127ecb7d41b3b53;hb=7ba8fd37426025138d7d19cfdbdf081d13c3b0c3;hp=d2ec9fb571aeebe2681cc2765c866da594e0ccd3;hpb=6aa5d280eb14164d0d87feaa108614dded1961fa;p=config%2Fdotfiles.git diff --git a/vim/ftplugin/perl/perl.xpt.vim b/vim/ftplugin/perl/perl.xpt.vim index d2ec9fb..672d2c5 100644 --- a/vim/ftplugin/perl/perl.xpt.vim +++ b/vim/ftplugin/perl/perl.xpt.vim @@ -21,10 +21,17 @@ " 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^