]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/ftplugin/c/c.xpt.vim
ftplugin/*/*.xpt.vim: Set empty `description^ to XXX.
[config/dotfiles.git] / vim / ftplugin / c / c.xpt.vim
index 7944ece899eb56636e07e273f588d0a262b0b89a..bca4558f8a2051e6aea6b66b3cc96bc9e12391b9 100644 (file)
 " You should have received a copy of the GNU General Public License
 " along with this file.  If not, see <http://www.gnu.org/licenses/>.
 
+
+" Prevent errors if XPTemplate is not installed.
+if !exists('g:XPT#ver')
+    finish
+endif
+
 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