mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-25 16:02:30 +01:00
13 lines
555 B
VimL
13 lines
555 B
VimL
if !exists('loaded_snips') || exists('s:did_sh_snips')
|
|
fini
|
|
en
|
|
let s:did_sh_snips = 1
|
|
let snippet_filetype = 'sh'
|
|
|
|
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"
|