From 4cc1996f6c69b035414e1c0d24c3525096357f06 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Mon, 22 Apr 2013 07:22:38 +0200 Subject: [PATCH 1/2] Improvements to the tex snippets by rene vergara. --- UltiSnips/tex.snippets | 10 +++++++++- doc/UltiSnips.txt | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/UltiSnips/tex.snippets b/UltiSnips/tex.snippets index a3f3ccb..fd5372c 100644 --- a/UltiSnips/tex.snippets +++ b/UltiSnips/tex.snippets @@ -4,7 +4,7 @@ extends texmath # LATEX SNIPPETS # ########################################################################### -snippet r "\ref{}" w +snippet r "\\ref{}" w \ref{$1} endsnippet @@ -122,4 +122,12 @@ ${0} % subparagraph $2 (end) endsnippet +############### +# Utilities # +############### + +snippet pac "Package" b +\usepackage[${1:options}]{${2:package}}$0 +endsnippet + # vim:ft=snippets: diff --git a/doc/UltiSnips.txt b/doc/UltiSnips.txt index 9d75b86..52bf8e9 100644 --- a/doc/UltiSnips.txt +++ b/doc/UltiSnips.txt @@ -1364,6 +1364,7 @@ Contributors listed in chronological order: Matthew Strawbridge (pxc) Josh Strater (jstrater) jinzhu + Rene Vergara (ravl1084) Thank you for your support. From 3479a918bd353029daf871ffdb537aca53f53e51 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Mon, 22 Apr 2013 19:45:54 +0200 Subject: [PATCH 2/2] Puppet style fixes by JHaals --- UltiSnips/puppet.snippets | 62 ++++++++++++++++++--------------------- doc/UltiSnips.txt | 1 + 2 files changed, 30 insertions(+), 33 deletions(-) diff --git a/UltiSnips/puppet.snippets b/UltiSnips/puppet.snippets index 15353e8..add906f 100644 --- a/UltiSnips/puppet.snippets +++ b/UltiSnips/puppet.snippets @@ -2,80 +2,76 @@ snippet /^class/ "Class declaration" r class ${1:name} { - ${0:# body} + ${0:# body} } endsnippet snippet File "Defaults for file" b File { - owner => '${1:username}', - group => '${2:groupname}', + owner => ${1:username}, + group => ${2:groupname}, } endsnippet # Resource types snippet package "Package resource type" b -package { "${1:name}": - ensure => '${2:installed}', +package { '${1:name}': + ensure => ${2:installed}, } endsnippet snippet file "File resource type" b file { '${1:name}': - source => 'puppet://${2:path}', - mode => '${3:mode}', -} + source => "puppet://${2:path}", + mode => ${3:mode}, endsnippet snippet group "Group resource type" b group { '${1:groupname}': - ensure => '${3:present}', - gid => '${2:gid}', -} + ensure => ${3:present}, + gid => ${2:gid}, endsnippet snippet user "user resource type" b -user { '${1:username}': - ensure => '${2:present}', - uid => '${3:uid}', - gid => '${4:gid}', - comment => '${5:gecos}', - home => '${6:homedirectory}', - homeagain => '$6', - managehome => false, - require => Group['${7:group}'], -} +group { '${1:username}': + ensure => ${2:present}, + uid => ${3:uid}, + gid => ${4:gid}, + comment => ${5:gecos}, + home => ${6:homedirectory}, + managehome => false, + require => Group['${7:group'], endsnippet snippet exec "Exec resource type" b exec { '${1:command}': - refreshonly => true, + refreshonly => true, } endsnippet snippet cron "Cron resource type" b cron { '${1:name}': - user => '${2:user}', - command => '${3:command}', - minute => '${3:minute}', - hour => '${4:hour}', + user => ${2:user}, + command => '${3:command}', + minute => ${3:minute}, + hour => ${4:hour}, } endsnippet snippet mount "Mount resource type" b mount { '${1:path}': - device => '${2:/dev}', - fstype => '${3:filesystem}', - ensure => 'mounted', - options => 'rw,errors=remount-ro', + device => '${2:/dev}', + fstype => '${3:filesystem}', + ensure => mounted, + options => 'rw,errors=remount-ro', } endsnippet snippet service "Service resource type" b service { '${1:name}': - hasstatus => true, - enable => true, - ensure => 'running', + hasstatus => true, + enable => true, + ensure => running, } endsnippet diff --git a/doc/UltiSnips.txt b/doc/UltiSnips.txt index 52bf8e9..ed4c3ab 100644 --- a/doc/UltiSnips.txt +++ b/doc/UltiSnips.txt @@ -1365,6 +1365,7 @@ Contributors listed in chronological order: Josh Strater (jstrater) jinzhu Rene Vergara (ravl1084) + Johan Haals (JHaals) Thank you for your support.