annotate src/testdir/test80.in @ 4099:77fa4dee43fc v7.3.803

updated for version 7.3.803 Problem: Substitute with confirmation and then "q" does not replace anything. (John McGowan) Solution: Do not break the loop, skip to the end.
author Bram Moolenaar <bram@vim.org>
date Wed, 06 Feb 2013 18:24:02 +0100
parents fdbded463fdc
children 7faeece39228
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2904
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Test for *sub-replace-special* and *sub-replace-expression* on substitue().
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 Test for submatch() on substitue().
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 Test for *:s%* on :substitute.
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 STARTTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :so small.vim
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 ENDTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 TEST_1:
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 STARTTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :set magic
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :set cpo&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :$put =\"\n\nTEST_1:\"
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :$put =substitute('A', 'A', '&&', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 :$put =substitute('B', 'B', '\&', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 :$put =substitute('C123456789', 'C\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)', '\0\9\8\7\6\5\4\3\2\1', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 :$put =substitute('D', 'D', 'd', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :$put =substitute('E', 'E', '~', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :$put =substitute('F', 'F', '\~', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :$put =substitute('G', 'G', '\ugg', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :$put =substitute('H', 'H', '\Uh\Eh', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :$put =substitute('I', 'I', '\lII', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 :$put =substitute('J', 'J', '\LJ\EJ', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :$put =substitute('K', 'K', '\Uk\ek', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :$put =substitute('lLl', 'L', ' ', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 :$put =substitute('mMm', 'M', '\r', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 :$put =substitute('nNn', 'N', '\ ', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :$put =substitute('oOo', 'O', '\n', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 :$put =substitute('pPp', 'P', '\b', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 :$put =substitute('qQq', 'Q', '\t', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 :$put =substitute('rRr', 'R', '\\', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 :$put =substitute('sSs', 'S', '\c', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 :$put =substitute('uUu', 'U', \"\n\", '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 :$put =substitute('vVv', 'V', \"\b\", '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 :$put =substitute('wWw', 'W', \"\\\", '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 :$put =substitute('xXx', 'X', \"\r\", '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 /^TEST_2
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 ENDTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 TEST_2:
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 STARTTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 :set nomagic
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 :set cpo&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 :$put =\"\n\nTEST_2:\"
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 :$put =substitute('A', 'A', '&&', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 :$put =substitute('B', 'B', '\&', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49 :$put =substitute('C123456789', 'C\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)', '\0\9\8\7\6\5\4\3\2\1', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50 :$put =substitute('D', 'D', 'd', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 :$put =substitute('E', 'E', '~', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 :$put =substitute('F', 'F', '\~', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 :$put =substitute('G', 'G', '\ugg', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54 :$put =substitute('H', 'H', '\Uh\Eh', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 :$put =substitute('I', 'I', '\lII', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56 :$put =substitute('J', 'J', '\LJ\EJ', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57 :$put =substitute('K', 'K', '\Uk\ek', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58 :$put =substitute('lLl', 'L', ' ', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59 :$put =substitute('mMm', 'M', '\r', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60 :$put =substitute('nNn', 'N', '\ ', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61 :$put =substitute('oOo', 'O', '\n', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62 :$put =substitute('pPp', 'P', '\b', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
63 :$put =substitute('qQq', 'Q', '\t', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64 :$put =substitute('rRr', 'R', '\\', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65 :$put =substitute('sSs', 'S', '\c', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66 :$put =substitute('tTt', 'T', \"\r\", '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
67 :$put =substitute('uUu', 'U', \"\n\", '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68 :$put =substitute('vVv', 'V', \"\b\", '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69 :$put =substitute('wWw', 'W', \"\\\", '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70 /^TEST_3
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71 ENDTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
72
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
73 TEST_3:
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
74
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
75 STARTTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
76 :set magic&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
77 :set cpo&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
78 :$put =\"\n\nTEST_3:\"
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
79 :let y = substitute('aAa', 'A', '\="\\"', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
80 :let y = substitute('bBb', 'B', '\="\\\\"', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
81 :let y = substitute('cCc', 'C', '\=" "', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
82 :let y = substitute('dDd', 'D', '\="\\ "', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
83 :let y = substitute('eEe', 'E', '\="\\\\ "', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
84 :let y = substitute('fFf', 'F', '\="\\r"', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
85 :let y = substitute('jJj', 'J', '\="\\n"', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
86 :let y = substitute('kKk', 'K', '\="\r"', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
87 :let y = substitute('lLl', 'L', '\="\n"', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
88 /^TEST_4
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89 ENDTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
91 TEST_4:
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
92
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
93 STARTTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
94 :set magic&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
95 :set cpo&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
96 :$put =\"\n\nTEST_4:\"
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
97 :let y = substitute('aAa', 'A', '\=substitute(submatch(0), ".", "\\", "")', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
98 :let y = substitute('bBb', 'B', '\=substitute(submatch(0), ".", "\\\\", "")', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
99 :let y = substitute('cCc', 'C', '\=substitute(submatch(0), ".", " ", "")', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
100 :let y = substitute('dDd', 'D', '\=substitute(submatch(0), ".", "\\ ", "")', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
101 :let y = substitute('eEe', 'E', '\=substitute(submatch(0), ".", "\\\\ ", "")', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
102 :let y = substitute('fFf', 'F', '\=substitute(submatch(0), ".", "\\r", "")', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
103 :let y = substitute('jJj', 'J', '\=substitute(submatch(0), ".", "\\n", "")', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
104 :let y = substitute('kKk', 'K', '\=substitute(submatch(0), ".", "\r", "")', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
105 :let y = substitute('lLl', 'L', '\=substitute(submatch(0), ".", "\n", "")', '') | $put =y
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
106 /^TEST_5
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
107 ENDTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
108
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
109 TEST_5:
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
110
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
111 STARTTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
112 :set magic&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
113 :set cpo&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
114 :$put =\"\n\nTEST_5:\"
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
115 :$put =substitute('A123456789', 'A\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)\(.\)', '\=submatch(0) . submatch(9) . submatch(8) . submatch(7) . submatch(6) . submatch(5) . submatch(4) . submatch(3) . submatch(2) . submatch(1)', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
116 /^TEST_6
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
117 ENDTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
118
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
119 TEST_6:
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
120
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
121 STARTTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
122 :set magic&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
123 :$put =\"\n\nTEST_6:\"
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
124 :set cpo+=/
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
125 :$put =substitute('A', 'A', 'a', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
126 :$put =substitute('B', 'B', '%', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
127 :set cpo-=/
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
128 :$put =substitute('C', 'C', 'c', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
129 :$put =substitute('D', 'D', '%', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
130 /^TEST_7
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
131 ENDTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
132
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
133 TEST_7:
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
134
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
135 STARTTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
136 :set magic&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
137 :set cpo&
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
138 :$put =\"\n\nTEST_7:\"
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
139 :$put =substitute('A A', 'A.', '\=submatch(0)', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
140 :$put =substitute(\"B\nB\", 'B.', '\=submatch(0)', '')
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
141 /^TEST_8
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
142 ENDTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
143
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
144 TEST_8:
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
145
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
146 STARTTEST
4078
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
147 :set magic&
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
148 :set cpo&
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
149 :$put =\"\n\nTEST_8:\"
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
150 :$put =',,X'
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
151 :s/\(^\|,\)\ze\(,\|X\)/\1N/g
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
152 :$put =',,Y'
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
153 :s/\(^\|,\)\ze\(,\|Y\)/\1N/gc
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
154 a:$put =',,Z'
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
155 :s/\(^\|,\)\ze\(,\|Z\)/\1N/gc
4099
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
156 yy/^TEST_9:
4078
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
157 ENDTEST
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
158
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
159 TEST_9:
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
160
fdbded463fdc updated for version 7.3.793
Bram Moolenaar <bram@vim.org>
parents: 2904
diff changeset
161 STARTTEST
4099
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
162 :set magic&
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
163 :set cpo&
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
164 :$put =\"\n\nTEST_9:\"
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
165 :$put ='xxx'
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
166 :s/x/X/gc
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
167 yyq/^TEST_10:
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
168 ENDTEST
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
169
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
170 TEST_10:
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
171
77fa4dee43fc updated for version 7.3.803
Bram Moolenaar <bram@vim.org>
parents: 4078
diff changeset
172 STARTTEST
2904
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
173 :/^Results/,$wq! test.out
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
174 ENDTEST
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
175
c249d9aa60f7 updated for version 7.3.225
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
176 Results of test72: