mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-19 20:38:05 +01:00
28 lines
381 B
Plaintext
28 lines
381 B
Plaintext
snippet guard
|
|
if exists('${1:did_`expand('%:t:r')`}') || &cp
|
|
finish
|
|
endif
|
|
let $1 = 1${2}
|
|
snippet f
|
|
fun ${1:function_name}(${2})
|
|
${3:" code}
|
|
endf
|
|
snippet for
|
|
for ${1:needle} in ${2:haystack}
|
|
${3:" code}
|
|
endfor
|
|
snippet wh
|
|
wh ${1:condition}
|
|
${2:" code}
|
|
endw
|
|
snippet if
|
|
if ${1:condition}
|
|
${2:" code}
|
|
endif
|
|
snippet ife
|
|
if ${1:condition}
|
|
${2}
|
|
else
|
|
${3}
|
|
endif
|