From: Simon Ruderich Date: Tue, 8 Jun 2010 20:16:41 +0000 (+0200) Subject: vim/ftplugin/_common/personal.xpt.vim: Add XPT settings. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=0473b50bd9d2d803f9f2b4549a90d93c418ca644;p=config%2Fdotfiles.git vim/ftplugin/_common/personal.xpt.vim: Add XPT settings. --- 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 ' '