From 2672bde2fb1d9846ead1fa3285f451f0d71957c6 Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Tue, 6 May 2014 14:53:52 +0200 Subject: [PATCH] add snippet options to some snippets --- UltiSnips/tex.snippets | 2 +- UltiSnips/vim.snippets | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/UltiSnips/tex.snippets b/UltiSnips/tex.snippets index 9ce807e..ede9090 100644 --- a/UltiSnips/tex.snippets +++ b/UltiSnips/tex.snippets @@ -8,7 +8,7 @@ snippet "b(egin)?" "begin{} / end{}" br \end{$1} endsnippet -snippet tab "tabular / array environment" +snippet tab "tabular / array environment" b \begin{${1:t}${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}{${2:c}} $0${2/((?<=.)c|l|r)|./(?1: & )/g} \end{$1${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}} diff --git a/UltiSnips/vim.snippets b/UltiSnips/vim.snippets index fc8f9e1..dbb2396 100644 --- a/UltiSnips/vim.snippets +++ b/UltiSnips/vim.snippets @@ -3,20 +3,20 @@ priority -50 ########################################################################### # SnipMate Snippets # ########################################################################### -snippet gvar "Global / configuration variable" +snippet gvar "Global / configuration variable" b if !exists("g:${1:MyUltraImportantVar}") let g:$1 = ${2:"${3:}"} endif endsnippet -snippet guard "script reload guard" +snippet guard "script reload guard" b if exists('${1:did_`!p snip.rv = snip.fn.replace('.','_')`}') || &cp${2: || version < 700} finish endif let $1 = 1${3} endsnippet -snippet f "function" +snippet f "function" b fun ${1:function_name}(${2}) ${3:" code} endf