From 0473b50bd9d2d803f9f2b4549a90d93c418ca644 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 8 Jun 2010 22:16:41 +0200 Subject: [PATCH] vim/ftplugin/_common/personal.xpt.vim: Add XPT settings. --- vim/ftplugin/_common/personal.xpt.vim | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 vim/ftplugin/_common/personal.xpt.vim diff --git a/vim/ftplugin/_common/personal.xpt.vim b/vim/ftplugin/_common/personal.xpt.vim new file mode 100644 index 0000000..9bcfb39 --- /dev/null +++ b/vim/ftplugin/_common/personal.xpt.vim @@ -0,0 +1,47 @@ +" Custom settings for XPTemplate. +XPTemplate priority=personal + +XPTvar $author Simon Ruderich +XPTvar $email simon@ruderich.org + + +" Space settings related to brackets. + +" if () ** { +" else ** { +XPTvar $BRif ' ' +" } ** else { +XPTvar $BRel ' ' +" for () ** { +" while () ** { +" do ** { +XPTvar $BRloop ' ' +" struct name ** { +XPTvar $BRstc ' ' +" int fun() ** { +" class name ** { +XPTvar $BRfun ' ' + + +" General space settings. + +" int fun ** ( +" class name ** ( +XPTvar $SPfun '' + +" int fun( ** arg ** ) +" if ( ** condition ** ) +" for ( ** statement ** ) +" [ ** a, b ** ] +" { ** 'k' : 'v' ** } +XPTvar $SParg '' + +" if ** ( +" while ** ( +" for ** ( +XPTvar $SPcmd ' ' + +" a ** = ** b +" a = a ** + ** 1 +" (a, ** b, ** ) +XPTvar $SPop ' ' -- 2.44.1