blob: df572c89733a58831bf500860a61af038317063e [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001Test for :execute, :while and :if
2
3STARTTEST
4:so small.vim
5mt:let i = 0
6:while i < 12
7: let i = i + 1
8: if has("ebcdic")
9: execute "normal o" . i . "\047"
10: else
11: execute "normal o" . i . "\033"
12: endif
13: if i % 2
14: normal Ax
15: if i == 9
16: break
17: endif
18: if i == 5
19: continue
20: else
21: let j = 9
22: while j > 0
23: if has("ebcdic")
24: execute "normal" j . "a" . j . "\x27"
25: else
26: execute "normal" j . "a" . j . "\x1b"
27: endif
28: let j = j - 1
29: endwhile
30: endif
31: endif
32: if i == 9
33: if has("ebcdic")
34: execute "normal Az\047"
35: else
36: execute "normal Az\033"
37: endif
38: endif
39:endwhile
40:'t,$w! test.out
41:qa!
42ENDTEST
43