]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/ftplugin/c/c.xpt.vim
xptemplate: use f as trigger to create the basic skeleton
[config/dotfiles.git] / vim / ftplugin / c / c.xpt.vim
index c6a3d78b4575d9f099c5076c18a0bc7b2fb5b1d8..aaeb7dbcd3d3adff18364e2c55f03562bd6a8b23 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
@@ -30,7 +30,8 @@ endif
 XPTemplate priority=personal
 
 
-XPT c
+XPT f
+XSET description|post=S(V(), '^description$', 'XXX')
 /*
  * `description^
  *
@@ -59,3 +60,10 @@ int main(int argc, char **argv) {
 
     return EXIT_SUCCESS;
 }
+
+
+XPT p
+printf("`format^"`cursor^);
+
+XPT pe
+fprintf(stderr, "`format^"`cursor^);