Skip to content

Commit 2672bde

Browse files
committed
add snippet options to some snippets
1 parent 27c2c2b commit 2672bde

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

UltiSnips/tex.snippets

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ snippet "b(egin)?" "begin{} / end{}" br
88
\end{$1}
99
endsnippet
1010

11-
snippet tab "tabular / array environment"
11+
snippet tab "tabular / array environment" b
1212
\begin{${1:t}${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}{${2:c}}
1313
$0${2/((?<=.)c|l|r)|./(?1: & )/g}
1414
\end{$1${1/(t)$|(a)$|(.*)/(?1:abular)(?2:rray)/}}

UltiSnips/vim.snippets

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ priority -50
33
###########################################################################
44
# SnipMate Snippets #
55
###########################################################################
6-
snippet gvar "Global / configuration variable"
6+
snippet gvar "Global / configuration variable" b
77
if !exists("g:${1:MyUltraImportantVar}")
88
let g:$1 = ${2:"${3:<tab>}"}
99
endif
1010
endsnippet
1111

12-
snippet guard "script reload guard"
12+
snippet guard "script reload guard" b
1313
if exists('${1:did_`!p snip.rv = snip.fn.replace('.','_')`}') || &cp${2: || version < 700}
1414
finish
1515
endif
1616
let $1 = 1${3}
1717
endsnippet
1818

19-
snippet f "function"
19+
snippet f "function" b
2020
fun ${1:function_name}(${2})
2121
${3:" code}
2222
endf

0 commit comments

Comments
 (0)