1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2026-04-23 16:31:25 +02:00

significantly refactored code, and added support for file-based snippets and delimeters before snippet triggers

This commit is contained in:
Michael
2009-02-25 14:08:30 -05:00
parent 9707a70f85
commit 465abbe37e
16 changed files with 1503 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
if !exists('loaded_snips') || exists('s:did_sh_snips')
fini
en
let s:did_sh_snips = 1
exe "Snipp if if [[ ${1:condition} ]]; then\n\t${2:#statements}\nfi"
exe "Snipp elif elif [[ ${1:condition} ]]; then\n\t${2:#statements}"
exe "Snipp for for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do\n\t${3:#statements}\ndone"
exe "Snipp wh while [[ ${1:condition} ]]; do\n\t${2:#statements}\ndone"
exe "Snipp until [[ ${1:condition} ]]; do\n\t${2:#statements}\ndone"
exe "Snipp case case ${1:word} in\n\t${2:pattern})\n\t\t${3};;\nesac"