1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-19 20:38:05 +01:00

Completely replaced command-based snippets with a new, easier to read/maintain syntax. Also added a python script to make it easier to migrate.

This commit is contained in:
Michael Sanders
2009-03-22 22:35:03 -04:00
parent 1c12d12862
commit 8764924dfe
33 changed files with 1793 additions and 840 deletions

27
snippets/vim.snippets Normal file
View File

@@ -0,0 +1,27 @@
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