]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/ftplugin/perl/perl.xpt.vim
ftplugin/perl/perl.xpt.vim: add pd, u, udd snippets
[config/dotfiles.git] / vim / ftplugin / perl / perl.xpt.vim
index 672d2c582f8ef36097dbb2ce1127ecb7d41b3b53..9c734bed3af759954ab99db5be32d1359b50f21c 100644 (file)
@@ -6,7 +6,7 @@
 " Maintainer:   Simon Ruderich <simon@ruderich.org>
 " License:      GPL v3+
 
-" Copyright (C) 2012  Simon Ruderich
+" Copyright (C) 2012-2014  Simon Ruderich
 "
 " This file is free software: you can redistribute it and/or modify
 " it under the terms of the GNU General Public License as published by
@@ -31,12 +31,12 @@ XPTemplate priority=personal
 
 
 XPT perl
-XSET year|def=strftime("%Y")
+XSET description|post=S(V(), '^description$', 'XXX')
 #!/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
@@ -57,3 +57,22 @@ use warnings;
 
 
 `cursor^
+
+
+XPT p
+print `value^;
+
+XPT pe
+print STDERR `value^;
+
+XPT pd
+print Dumper(`value^);
+
+
+XPT u
+use `package^;
+`cursor^
+
+XPT udd
+use Data::Dumper;
+`cursor^