]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/ftplugin/perl/perl.xpt.vim
ftplugin/*.xpt.vim: print snippets: move cursor after snippet
[config/dotfiles.git] / vim / ftplugin / perl / perl.xpt.vim
index 672d2c582f8ef36097dbb2ce1127ecb7d41b3b53..f33e09afba227d9142f07066adb703da4f5e82a8 100644 (file)
@@ -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,10 @@ use warnings;
 
 
 `cursor^
+
+
+XPT p
+print `value^;
+
+XPT pe
+print STDERR `value^;