mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-27 17:02:36 +01:00
Version 0.61803399 (first commit)
This commit is contained in:
11
after/ftplugin/sh_snips.vim
Normal file
11
after/ftplugin/sh_snips.vim
Normal file
@@ -0,0 +1,11 @@
|
||||
if !exists('loaded_snips') || exists('b:did_sh_snips')
|
||||
fini
|
||||
en
|
||||
let b: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"
|
||||
Reference in New Issue
Block a user