Skip to content

Commit

Permalink
while -> wh, see #230 and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcWeber committed Aug 8, 2013
1 parent c0cddc9 commit 8024cfc
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 13 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ if : if without else
ife: if $1 else $2
eif : else if ($1) { .. }
el : else ..
wh : while (cond) ...
```

If you're not satisfied with these defaults, open a ticket that we implement
Expand Down Expand Up @@ -89,7 +90,7 @@ Thus for conditions (while, if ..) and block bodies just use ${N} - Thanks

Open questions:
What about one line if ee then .. else .. vs if \n .. then \n ... \n else \n .. ?
What about wh(ile), which trigger?
Which additional policies to add?
Discuss at: https://github.com/honza/vim-snippets/issues/230


Expand Down
2 changes: 1 addition & 1 deletion UltiSnips/ocaml.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if ${1} then
${2}
endsnippet

snippet while "while"
snippet wh "while"
while ${1} do
${2}
done
Expand Down
2 changes: 1 addition & 1 deletion UltiSnips/perl.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ unless ($1) {

endsnippet

snippet while "while"
snippet wh "while"
while ($1) {
${2:# body...}
}
Expand Down
2 changes: 1 addition & 1 deletion UltiSnips/ruby.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ endsnippet



snippet while "while <expression> ... end"
snippet wh "while <expression> ... end"
while ${1:expression}
${0}
end
Expand Down
2 changes: 1 addition & 1 deletion UltiSnips/sh.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ until ${2:[[ ${1:condition} ]]}; do
done
endsnippet

snippet while "while ... (done)"
snippet wh "while ... (done)"
while ${2:[[ ${1:condition} ]]}; do
${0:#statements}
done
Expand Down
2 changes: 1 addition & 1 deletion UltiSnips/tcl.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ switch ${1:-exact} -- ${2:\$var} {

endsnippet

snippet while "while... (while)" b
snippet wh "while... (while)" b
while {${1}} {
${2}
}
Expand Down
2 changes: 1 addition & 1 deletion snippets/actionscript.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ snippet do
do {
${2}
} while (${1:cond})
snippet while
snippet wh
while ${1:cond}{
${2}
}
Expand Down
2 changes: 1 addition & 1 deletion snippets/autoit.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ snippet select
{$4:; Else code}
EndSelect
# While loop
snippet while
snippet wh
While (${1:condition})
${2:; code...}
WEnd
Expand Down
2 changes: 1 addition & 1 deletion snippets/falcon.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ snippet forto
end

# While Loop
snippet while
snippet wh
while ${1:conidition}
${2}
end
2 changes: 1 addition & 1 deletion snippets/htmltornado.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ snippet try
{% finallly %}
${3}
{% end %}
snippet while
snippet wh
{% while ${1:condition} %}
${2}
{% end %}
2 changes: 1 addition & 1 deletion snippets/processing.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ snippet for
${4:$1[$2]}
};
#loop while
snippet while
snippet wh
while (${1:/* condition */}) {
${2}
}
Expand Down
2 changes: 1 addition & 1 deletion snippets/ruby.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ snippet unless
unless ${1:condition}
${2}
end
snippet while
snippet wh
while ${1:condition}
${2}
end
Expand Down
2 changes: 1 addition & 1 deletion snippets/scala.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ snippet eif
${4}
}
#while loop
snippet while
snippet wh
while (${1:obj}) {
${2}
}
Expand Down

0 comments on commit 8024cfc

Please sign in to comment.