blob: e7cd7576610f10f9673dd9c25141bd66015ecde0 [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
Bram Moolenaar9d2c8c12007-09-25 16:00:00 +000040:unlet i j
Bram Moolenaar071d4272004-06-13 20:20:40 +000041:'t,$w! test.out
42:qa!
43ENDTEST
44