Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0856ec4

Browse files
idbriilpil
authored andcommitted
Use VISUAL for shell control statements
Follow the "Things to consider when contributing" guideline to avoid pointless placeholder text.
1 parent 180d239 commit 0856ec4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

UltiSnips/sh.snippets

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,24 @@ endsnippet
4747
snippet case "case .. esac (case)"
4848
case ${1:word} in
4949
${2:pattern} )
50-
$0;;
50+
${0:${VISUAL}};;
5151
esac
5252
endsnippet
5353

5454
snippet elif "elif .. (elif)"
5555
elif ${2:[[ ${1:condition} ]]}; then
56-
${0:#statements}
56+
${0:${VISUAL}}
5757
endsnippet
5858

5959
snippet for "for ... done (for)"
6060
for (( i = 0; i < ${1:10}; i++ )); do
61-
${0:#statements}
61+
${0:${VISUAL}}
6262
done
6363
endsnippet
6464

6565
snippet forin "for ... in ... done (forin)"
6666
for ${1:i}${2/.+/ in /}${2:words}; do
67-
${0:#statements}
67+
${0:${VISUAL}}
6868
done
6969
endsnippet
7070

@@ -76,19 +76,19 @@ endsnippet
7676

7777
snippet if "if ... then (if)"
7878
if ${2:[[ ${1:condition} ]]}; then
79-
${0:#statements}
79+
${0:${VISUAL}}
8080
fi
8181
endsnippet
8282

8383
snippet until "until ... (done)"
8484
until ${2:[[ ${1:condition} ]]}; do
85-
${0:#statements}
85+
${0:${VISUAL}}
8686
done
8787
endsnippet
8888

8989
snippet while "while ... (done)"
9090
while ${2:[[ ${1:condition} ]]}; do
91-
${0:#statements}
91+
${0:${VISUAL}}
9292
done
9393
endsnippet
9494

0 commit comments

Comments
 (0)