Small config and highlightning changes
[my-vim-dotfolder.git] / snippets / sh.snippets
blobf035126eecad3aade1bac1317060bdd598c389d0
1 # #!/bin/bash
2 snippet #!
3         #!/bin/bash
4         
5 snippet if
6         if [[ ${1:condition} ]]; then
7                 ${2:#statements}
8         fi
9 snippet elif
10         elif [[ ${1:condition} ]]; then
11                 ${2:#statements}
12 snippet for
13         for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
14                 ${3:#statements}
15         done
16 snippet wh
17         while [[ ${1:condition} ]]; do
18                 ${2:#statements}
19         done
20 snippet until
21         until [[ ${1:condition} ]]; do
22                 ${2:#statements}
23         done
24 snippet case
25         case ${1:word} in
26                 ${2:pattern})
27                         ${3};;
28         esac