Mercurial > vim
annotate src/testdir/test72.in @ 5830:e8ffd1e6c8dc v7.4.258
updated for version 7.4.258
Problem: Configure fails if $CC contains options.
Solution: Remove quotes around $CC. (Paul Barker)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 12 Apr 2014 13:12:24 +0200 |
parents | 47a673b20e49 |
children | 18ac55444b37 |
rev | line source |
---|---|
2232
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
1 Tests for undo file. |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
2 Since this script is sourced we need to explicitly break changes up in |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
3 undo-able pieces. Do that by setting 'undolevels'. |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
4 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
5 STARTTEST |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
6 :so small.vim |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
7 :" |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
8 :" Test 'undofile': first a simple one-line change. |
2504
dcb3ab4587b4
Set 'visualbell' in test 72 to avoid a beep.
Bram Moolenaar <bram@vim.org>
parents:
2459
diff
changeset
|
9 :set nocompatible viminfo+=nviminfo visualbell |
2456
2876ac15b8c8
Avoid that running tests changes viminfo.
Bram Moolenaar <bram@vim.org>
parents:
2438
diff
changeset
|
10 :set ul=100 undofile nomore |
2232
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
11 :e! Xtestfile |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
12 ggdGithis is one line:set ul=100 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
13 :s/one/ONE/ |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
14 :set ul=100 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
15 :w |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
16 :bwipe! |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
17 :e Xtestfile |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
18 u:.w! test.out |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
19 :" |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
20 :" Test 'undofile', change in original file fails check |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
21 :set noundofile |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
22 :e! Xtestfile |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
23 :s/line/Line/ |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
24 :w |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
25 :set undofile |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
26 :bwipe! |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
27 :e Xtestfile |
2459
64df5d008ccb
Fix: test 69 didn't work on MS-Windows. Test 72 beeped too often.
Bram Moolenaar <bram@vim.org>
parents:
2456
diff
changeset
|
28 :" TODO: this beeps |
2232
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
29 u:.w >>test.out |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
30 :" |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
31 :" Test 'undofile', add 10 lines, delete 6 lines, undo 3 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
32 :set undofile |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
33 ggdGione |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
34 two |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
35 three |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
36 four |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
37 five |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
38 six |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
39 seven |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
40 eight |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
41 nine |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
42 ten:set ul=100 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
43 3Gdd:set ul=100 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
44 dd:set ul=100 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
45 dd:set ul=100 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
46 dd:set ul=100 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
47 dd:set ul=100 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
48 dd:set ul=100 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
49 :w |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
50 :bwipe! |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
51 :e Xtestfile |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
52 uuu:w >>test.out |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
53 :" |
3246 | 54 :" Test that reading the undofiles when setting undofile works |
55 :set noundofile ul=0 | |
56 i | |
57 u:e! Xtestfile | |
58 :set undofile ul=100 | |
59 uuuuuu:w >>test.out | |
2438
9614fe67034c
Fix test 72 not setting encryption method. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents:
2267
diff
changeset
|
60 :" And now with encryption, cryptmethod=zip |
2239
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
61 :e! Xtestfile |
2438
9614fe67034c
Fix test 72 not setting encryption method. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents:
2267
diff
changeset
|
62 :set undofile cm=zip |
2459
64df5d008ccb
Fix: test 69 didn't work on MS-Windows. Test 72 beeped too often.
Bram Moolenaar <bram@vim.org>
parents:
2456
diff
changeset
|
63 ggdGimonday |
2239
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
64 tuesday |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
65 wednesday |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
66 thursday |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
67 friday:set ul=100 |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
68 kkkdd:set ul=100 |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
69 dd:set ul=100 |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
70 dd:set ul=100 |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
71 :X |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
72 foobar |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
73 foobar |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
74 :w! |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
75 :bwipe! |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
76 :e Xtestfile |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
77 foobar |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
78 :set key= |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
79 uu:w >>test.out |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
80 :" |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
81 :" |
2438
9614fe67034c
Fix test 72 not setting encryption method. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents:
2267
diff
changeset
|
82 :" With encryption, cryptmethod=blowfish |
2239
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
83 :e! Xtestfile |
2438
9614fe67034c
Fix test 72 not setting encryption method. (Dominique Pelle)
Bram Moolenaar <bram@vim.org>
parents:
2267
diff
changeset
|
84 :set undofile cm=blowfish |
2459
64df5d008ccb
Fix: test 69 didn't work on MS-Windows. Test 72 beeped too often.
Bram Moolenaar <bram@vim.org>
parents:
2456
diff
changeset
|
85 ggdGijan |
2239
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
86 feb |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
87 mar |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
88 apr |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
89 jun:set ul=100 |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
90 kk0ifoo :set ul=100 |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
91 dd:set ul=100 |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
92 ibar :set ul=100 |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
93 :X |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
94 foobar |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
95 foobar |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
96 :w! |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
97 :bwipe! |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
98 :e Xtestfile |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
99 foobar |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
100 :set key= |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
101 /bar |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
102 :.w >>test.out |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
103 u:.w >>test.out |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
104 u:.w >>test.out |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
105 u:.w >>test.out |
732cb7b31956
Crypt the text in the undo file if the file itself is crypted.
Bram Moolenaar <bram@vim.org>
parents:
2232
diff
changeset
|
106 :" |
2232
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
107 :" Rename the undo file so that it gets cleaned up. |
5704 | 108 :if has("vms") |
109 : call rename("_un_Xtestfile", "Xtestundo") | |
110 :else | |
111 : call rename(".Xtestfile.un~", "Xtestundo") | |
112 :endif | |
2232
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
113 :qa! |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
114 ENDTEST |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
115 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
116 1111 ----- |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
117 2222 ----- |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
118 |
2e6906bbc5f4
A few more fixes for undo file. Split test in two parts so that it doesn't
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
119 123456789 |