调整格式

pull/21/head
skywind3000 7 years ago
parent 167396d7e2
commit be0922c2ab

@ -149,6 +149,8 @@ false
## If, For, While, and Try/Catch ## If, For, While, and Try/Catch
条件判断:
```VimL ```VimL
if <expression> if <expression>
... ...
@ -157,12 +159,19 @@ elseif <expression>
else else
... ...
endif endif
```
循环:
```VimL
for <var> in <list> for <var> in <list>
continue continue
break break
endfor endfor
``` ```
复杂循环:
```VimL ```VimL
for [var1, var2] in [[1, 2], [3, 4]] for [var1, var2] in [[1, 2], [3, 4]]
" on 1st loop, var1 = 1 and var2 = 2 " on 1st loop, var1 = 1 and var2 = 2
@ -170,11 +179,15 @@ for [var1, var2] in [[1, 2], [3, 4]]
endfor endfor
``` ```
While 循环:
```VimL ```VimL
while <expression> while <expression>
endwhile endwhile
``` ```
异常捕获:
```VimL ```VimL
try try
... ...

Loading…
Cancel
Save