annotate src/testdir/test14.in @ 8122:39532ee7dd43 v7.4.1355

commit https://github.com/vim/vim/commit/ed5a78e11c80c7b13b233149fd4273b71fc96262 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 19 21:05:03 2016 +0100 patch 7.4.1355 Problem: Win32 console and GUI handle channels differently. Solution: Consolidate code between Win32 console and GUI.
author Christian Brabandt <cb@256bit.org>
date Fri, 19 Feb 2016 21:15:05 +0100
parents fa53233519c6
children ae45d497868f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Tests for "vaBiB", end could be wrong.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 Also test ":s/pat/sub/" with different ~s in sub.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 Also test for ^Vxff and ^Vo123 in Insert mode.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 Also test "[m", "]m", "[M" and "]M"
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
5 Also test search()
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 /Start cursor here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 vaBiBD:?Bug?,/Piece/-2w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 /^- Bug
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 :s/u/~u~/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :s/i/~u~/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :s/o/~~~/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :if has("ebcdic")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 : let tt = "o\<C-V>193\<C-V>xc2\<C-V>o303 \<C-V>90a\<C-V>xfg\<C-V>o578\<Esc>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 : let tt = "o\<C-V>65\<C-V>x42\<C-V>o103 \<C-V>33a\<C-V>xfg\<C-V>o78\<Esc>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :exe "normal " . tt
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 7
diff changeset
22 :unlet tt
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 :.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 :set vb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 /^Piece
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 2]maA:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 j]maB:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 ]maC:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 [maD:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 k2[maE:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 3[maF:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 ]MaG:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 j2]MaH:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 ]M]MaI:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 2[MaJ:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 k[MaK:.w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 3[MaL:.w >>test.out
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
38 :"
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
39 /^foobar
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
40 :let startline = line('.')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
41 :call search('foobar', 'c')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
42 :call append(line('$'), line('.') - startline)
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
43 j:call search('^$', 'c')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
44 :call append(line('$'), line('.') - startline)
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
45 :call search('^$', 'bc')
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
46 :call append(line('$'), line('.') - startline)
4252
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
47 /two
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
48 :call search('.', 'c')
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
49 :call append(line('$'), getline('.')[col('.') - 1:])
5606
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
50 :"
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
51 /^substitute
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
52 :s/foo/bar/
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
53 :$put =@/
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
54 /^substitute
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
55 :keeppatterns s/asdf/xyz/
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
56 :$put =@/
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
57 /^substitute
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
58 Y:$put =@0
5616
fa53233519c6 updated for version 7.4.155
Bram Moolenaar <bram@vim.org>
parents: 5606
diff changeset
59 /bar /e
fa53233519c6 updated for version 7.4.155
Bram Moolenaar <bram@vim.org>
parents: 5606
diff changeset
60 :$put =@0
fa53233519c6 updated for version 7.4.155
Bram Moolenaar <bram@vim.org>
parents: 5606
diff changeset
61 -:keeppatterns /xyz
fa53233519c6 updated for version 7.4.155
Bram Moolenaar <bram@vim.org>
parents: 5606
diff changeset
62 0dn:/^search()/,$w >>test.out
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 - Bug in "vPPPP" on this text (Webb):
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 cmd;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 cmd; /* <-- Start cursor here */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 Piece of Java
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 tt m1 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 t1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 } e1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 tt m2 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 t2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 } e2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 tt m3 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 if (x)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 t3;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 } e3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 }
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
93
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
94 foobar
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
95
5606
15960ebc2ee8 updated for version 7.4.150
Bram Moolenaar <bram@vim.org>
parents: 4252
diff changeset
96 substitute foo asdf
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
97
4252
96f478b812b1 updated for version 7.3.877
Bram Moolenaar <bram@vim.org>
parents: 4240
diff changeset
98 one two
4240
d52c45b35fb0 updated for version 7.3.871
Bram Moolenaar <bram@vim.org>
parents: 1405
diff changeset
99 search()