From 6aa5d280eb14164d0d87feaa108614dded1961fa Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Thu, 2 Aug 2012 18:39:00 +0200 Subject: [PATCH] vim/ftplugin: Add XPTemplate file skeletons for C and Perl. --- vim/ftplugin/c/c.xpt.vim | 56 ++++++++++++++++++++++++++++++++++ vim/ftplugin/perl/perl.xpt.vim | 52 +++++++++++++++++++++++++++++++ 2 files changed, 108 insertions(+) create mode 100644 vim/ftplugin/c/c.xpt.vim create mode 100644 vim/ftplugin/perl/perl.xpt.vim diff --git a/vim/ftplugin/c/c.xpt.vim b/vim/ftplugin/c/c.xpt.vim new file mode 100644 index 0000000..7944ece --- /dev/null +++ b/vim/ftplugin/c/c.xpt.vim @@ -0,0 +1,56 @@ +" vim: ft=xpt + +" XPTemplate template file. +" +" Language: C +" Maintainer: Simon Ruderich +" License: GPL v3+ + +" Copyright (C) 2012 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 +" the Free Software Foundation, either version 3 of the License, or +" (at your option) any later version. +" +" This file is distributed in the hope that it will be useful, +" but WITHOUT ANY WARRANTY; without even the implied warranty of +" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +" GNU General Public License for more details. +" +" You should have received a copy of the GNU General Public License +" along with this file. If not, see . + +XPTemplate priority=personal + + +XPT c +XSET year|def=strftime("%Y") +/* + * `description^ + * + * Copyright (C) `year^ 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 + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include +#include + + +int main(int argc, char **argv) { + `cursor^ + + return EXIT_SUCCESS; +} diff --git a/vim/ftplugin/perl/perl.xpt.vim b/vim/ftplugin/perl/perl.xpt.vim new file mode 100644 index 0000000..d2ec9fb --- /dev/null +++ b/vim/ftplugin/perl/perl.xpt.vim @@ -0,0 +1,52 @@ +" vim: ft=xpt + +" XPTemplate template file. +" +" Language: Perl +" Maintainer: Simon Ruderich +" License: GPL v3+ + +" Copyright (C) 2012 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 +" the Free Software Foundation, either version 3 of the License, or +" (at your option) any later version. +" +" This file is distributed in the hope that it will be useful, +" but WITHOUT ANY WARRANTY; without even the implied warranty of +" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +" GNU General Public License for more details. +" +" You should have received a copy of the GNU General Public License +" along with this file. If not, see . + +XPTemplate priority=personal + + +XPT perl +#!/usr/bin/perl + +# `description^ + +# Copyright (C) `year^ 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 +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +use strict; +use warnings; + + +`cursor^ -- 2.45.2