]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/ftplugin/c/c.xpt.vim
after/syntax/perl.vim: support Inline::C highlighting
[config/dotfiles.git] / vim / ftplugin / c / c.xpt.vim
index 928420ff5c08e522759b0a83aa3e77979806eedb..588d7c205abb102586537d2400ebe05961d22b62 100644 (file)
@@ -31,11 +31,11 @@ XPTemplate priority=personal
 
 
 XPT c
-XSET year|def=strftime("%Y")
+XSET description|post=S(V(), '^description$', 'XXX')
 /*
  * `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
@@ -60,3 +60,10 @@ int main(int argc, char **argv) {
 
     return EXIT_SUCCESS;
 }
+
+
+XPT p
+printf("`format^"`cursor^);
+
+XPT pe
+fprintf(stderr, "`format^"`cursor^);