annotate src/testdir/test53.in @ 6535:f9d02ce2f745 v7.4.594

updated for version 7.4.594 Problem: Using a block delete while 'breakindent' is set does not work properly. Solution: Use "line" instead of "prev_pend" as the first argument to lbr_chartabsize_adv(). (Hirohito Higashi)
author Bram Moolenaar <bram@vim.org>
date Tue, 27 Jan 2015 13:22:20 +0100
parents eb0fb921e197
children 950e24f26ef8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
1 Tests for string and html text objects. vim: set ft=vim :
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
2
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
3 Note that the end-of-line moves the cursor to the next test line.
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
4
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
5 Also test match() and matchstr()
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
6
5676
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
7 Also test the gn command and repeating it.
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
8
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
9 STARTTEST
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
10 :so small.vim
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
11 /^start:/
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
12 da"
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
13 0va'a'rx
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
14 02f`da`
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
15 0fXdi"
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
16 03f'vi'ry
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
17 :set quoteescape=+*-
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
18 di`
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
19 $F"va"oha"i"rz
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
20 :"
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
21 /^<begin
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
22 jfXdit
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
23 0fXdit
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
24 fXdat
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
25 0fXdat
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
26 :"
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
27 :put =matchstr(\"abcd\", \".\", 0, 2) " b
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
28 :put =matchstr(\"abcd\", \"..\", 0, 2) " bc
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
29 :put =matchstr(\"abcd\", \".\", 2, 0) " c (zero and negative -> first match)
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
30 :put =matchstr(\"abcd\", \".\", 0, -1) " a
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
31 :put =match(\"abcd\", \".\", 0, 5) " -1
a81bc802c17c updated for version 7.0011
vimboss
parents: 12
diff changeset
32 :put =match(\"abcd\", \".\", 0, -1) " 0
5676
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
33 :put =match('abc', '.', 0, 1) " 0
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
34 :put =match('abc', '.', 0, 2) " 1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
35 :put =match('abc', '.', 0, 3) " 2
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
36 :put =match('abc', '.', 0, 4) " -1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
37 :put =match('abc', '.', 1, 1) " 1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
38 :put =match('abc', '.', 2, 1) " 2
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
39 :put =match('abc', '.', 3, 1) " -1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
40 :put =match('abc', '$', 0, 1) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
41 :put =match('abc', '$', 0, 2) " -1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
42 :put =match('abc', '$', 1, 1) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
43 :put =match('abc', '$', 2, 1) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
44 :put =match('abc', '$', 3, 1) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
45 :put =match('abc', '$', 4, 1) " -1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
46 :put =match('abc', '\zs', 0, 1) " 0
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
47 :put =match('abc', '\zs', 0, 2) " 1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
48 :put =match('abc', '\zs', 0, 3) " 2
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
49 :put =match('abc', '\zs', 0, 4) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
50 :put =match('abc', '\zs', 0, 5) " -1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
51 :put =match('abc', '\zs', 1, 1) " 1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
52 :put =match('abc', '\zs', 2, 1) " 2
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
53 :put =match('abc', '\zs', 3, 1) " 3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
54 :put =match('abc', '\zs', 4, 1) " -1
3701
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
55 /^foobar
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
56 gncsearchmatch/one\_s*two\_s
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
57 :1
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
58 gnd
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
59 /[a]bcdx
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
60 :1
3774
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
61 2gnd/join
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
62 /$
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
63 0gnd
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
64 /\>\zs
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
65 0gnd/^
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
66 gnd$h/\zs
3778
29fe4e5c1db1 updated for version 7.3.647
Bram Moolenaar <bram@vim.org>
parents: 3774
diff changeset
67 gnd/[u]niquepattern/s
29fe4e5c1db1 updated for version 7.3.647
Bram Moolenaar <bram@vim.org>
parents: 3774
diff changeset
68 vlgnd
3857
34aa94a421b7 updated for version 7.3.685
Bram Moolenaar <bram@vim.org>
parents: 3778
diff changeset
69 /mother
34aa94a421b7 updated for version 7.3.685
Bram Moolenaar <bram@vim.org>
parents: 3778
diff changeset
70 :set selection=exclusive
5064
8875401008da updated for version 7.3.1275
Bram Moolenaar <bram@vim.org>
parents: 3857
diff changeset
71 $cgNmongoose/i
8875401008da updated for version 7.3.1275
Bram Moolenaar <bram@vim.org>
parents: 3857
diff changeset
72 cgnj
5398
eb33cadafcab updated for version 7.4.050
Bram Moolenaar <bram@vim.org>
parents: 5064
diff changeset
73 :" Make sure there is no other match y uppercase.
eb33cadafcab updated for version 7.4.050
Bram Moolenaar <bram@vim.org>
parents: 5064
diff changeset
74 /x59
eb33cadafcab updated for version 7.4.050
Bram Moolenaar <bram@vim.org>
parents: 5064
diff changeset
75 gggnd
5676
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
76 :" test repeating dgn
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
77 /^Johnny
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
78 ggdgn.
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
79 :" test repeating gUgn
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
80 /^Depp
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
81 gggUgn.
6443
eb0fb921e197 updated for version 7.4.551
Bram Moolenaar <bram@vim.org>
parents: 5676
diff changeset
82 gg/a:0\@!\zs\d\+
eb0fb921e197 updated for version 7.4.551
Bram Moolenaar <bram@vim.org>
parents: 5676
diff changeset
83 nygnop
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
84 :/^start:/,/^end:/wq! test.out
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
85 ENDTEST
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
86
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
87 start: "wo\"rd\\" foo
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
88 'foo' 'bar' 'piep'
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
89 bla bla `quote` blah
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
90 out " in "noXno"
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
91 "'" 'blah' rep 'buh'
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
92 bla `s*`d-`+++`l**` b`la
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
93 voo "nah" sdf " asdf" sdf " sdf" sd
853
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
94
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
95 <begin>
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
96 -<b>asdf<i>Xasdf</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
97 -<b>asdX<i>a<i />sdf</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
98 -<b>asdf<i>Xasdf</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
99 -<b>asdX<i>as<b />df</i>asdf</b>-
d10fbefd3bc1 updated for version 7.0f05
vimboss
parents: 19
diff changeset
100 </begin>
3701
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
101 SEARCH:
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
102 foobar
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
103 one
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
104 two
9f48a5432997 updated for version 7.3.610
Bram Moolenaar <bram@vim.org>
parents: 853
diff changeset
105 abcdx | abcdx | abcdx
3774
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
106 join
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
107 lines
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
108 zero width pattern
1810ee914648 updated for version 7.3.645
Bram Moolenaar <bram@vim.org>
parents: 3701
diff changeset
109 delete first and last chars
3778
29fe4e5c1db1 updated for version 7.3.647
Bram Moolenaar <bram@vim.org>
parents: 3774
diff changeset
110 uniquepattern uniquepattern
3857
34aa94a421b7 updated for version 7.3.685
Bram Moolenaar <bram@vim.org>
parents: 3778
diff changeset
111 my very excellent mother just served us nachos
5064
8875401008da updated for version 7.3.1275
Bram Moolenaar <bram@vim.org>
parents: 3857
diff changeset
112 for (i=0; i<=10; i++)
6443
eb0fb921e197 updated for version 7.4.551
Bram Moolenaar <bram@vim.org>
parents: 5676
diff changeset
113 a:10
eb0fb921e197 updated for version 7.4.551
Bram Moolenaar <bram@vim.org>
parents: 5676
diff changeset
114
eb0fb921e197 updated for version 7.4.551
Bram Moolenaar <bram@vim.org>
parents: 5676
diff changeset
115 a:1
eb0fb921e197 updated for version 7.4.551
Bram Moolenaar <bram@vim.org>
parents: 5676
diff changeset
116
eb0fb921e197 updated for version 7.4.551
Bram Moolenaar <bram@vim.org>
parents: 5676
diff changeset
117 a:20
5398
eb33cadafcab updated for version 7.4.050
Bram Moolenaar <bram@vim.org>
parents: 5064
diff changeset
118 Y
eb33cadafcab updated for version 7.4.050
Bram Moolenaar <bram@vim.org>
parents: 5064
diff changeset
119 text
eb33cadafcab updated for version 7.4.050
Bram Moolenaar <bram@vim.org>
parents: 5064
diff changeset
120 Y
5676
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
121 --1
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
122 Johnny
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
123 --2
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
124 Johnny
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
125 --3
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
126 Depp
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
127 --4
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
128 Depp
9ac2fc63501d updated for version 7.4.184
Bram Moolenaar <bram@vim.org>
parents: 5398
diff changeset
129 --5
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents:
diff changeset
130 end: