annotate src/testdir/test61.in @ 1188:2a276274c592

updated for version 7.1b
author vimboss
date Thu, 10 May 2007 16:48:19 +0000
parents 2c885fab04e3
children f8222d1f9a73
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
767
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
1 Tests for undo tree.
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
2 Since this script is sourced we need to explicitly break changes up in
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
3 undo-able pieces. Do that by setting 'undolevels'.
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
4
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
5 STARTTEST
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
6 :" Delete three characters and undo
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
7 Gx:set ul=100
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
8 x:set ul=100
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
9 x:.w! test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
10 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
11 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
12 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
13 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
14 :"
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
15 :/^111/w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
16 :" Delete three other characters and go back in time step by step
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
17 $x:set ul=100
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
18 x:set ul=100
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
19 x:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
20 :sleep 1
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
21 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
22 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
23 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
24 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
25 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
26 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
27 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
28 g-:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
29 10g+:.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
30 :"
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
31 :/^222/w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
32 :" Delay for three seconds and go some seconds forward and backward
805
497fab3f99d6 updated for version 7.0b01
vimboss
parents: 800
diff changeset
33 :sleep 2
767
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
34 Aa:set ul=100
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
35 Ab:set ul=100
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
36 Ac:set ul=100
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
37 :.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
38 :ear 1s
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
39 :.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
40 :ear 3s
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
41 :.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
42 :later 1s
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
43 :.w >>test.out
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
44 :later 1h
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
45 :.w >>test.out
840
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 805
diff changeset
46 :"
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 805
diff changeset
47 :" test undojoin
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 805
diff changeset
48 Goaaaa:set ul=100
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 805
diff changeset
49 obbbbu:.w >>test.out
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 805
diff changeset
50 obbbb:set ul=100
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 805
diff changeset
51 :undojoin
2c885fab04e3 updated for version 7.0e06
vimboss
parents: 805
diff changeset
52 occccu:.w >>test.out
767
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
53 :qa!
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
54 ENDTEST
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
55
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
56 1111 -----
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
57 2222 -----
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
58
6c8a16911e94 updated for version 7.0225
vimboss
parents:
diff changeset
59 123456789