X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vim%2Fftplugin%2Fc%2Fc.xpt.vim;h=aaeb7dbcd3d3adff18364e2c55f03562bd6a8b23;hb=608699cd71b2d45b86c255eef3d6ad8e4fba59f7;hp=928420ff5c08e522759b0a83aa3e77979806eedb;hpb=7ba8fd37426025138d7d19cfdbdf081d13c3b0c3;p=config%2Fdotfiles.git diff --git a/vim/ftplugin/c/c.xpt.vim b/vim/ftplugin/c/c.xpt.vim index 928420f..aaeb7db 100644 --- a/vim/ftplugin/c/c.xpt.vim +++ b/vim/ftplugin/c/c.xpt.vim @@ -6,7 +6,7 @@ " Maintainer: Simon Ruderich " 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 @@ -30,12 +30,12 @@ endif XPTemplate priority=personal -XPT c -XSET year|def=strftime("%Y") +XPT f +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^);