Mercurial > vim
annotate src/testdir/test53.in @ 6100:76e7fb736c0e v7.4.388
updated for version 7.4.388
Problem: With 'linebreak' set and 'list' unset a Tab is not counted
properly. (Kent Sibilev)
Solution: Check the 'list' option. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 30 Jul 2014 16:44:22 +0200 |
parents | 9ac2fc63501d |
children | eb0fb921e197 |
rev | line source |
---|---|
853 | 1 Tests for string and html text objects. vim: set ft=vim : |
12 | 2 |
19 | 3 Note that the end-of-line moves the cursor to the next test line. |
4 | |
5 Also test match() and matchstr() | |
6 | |
5676 | 7 Also test the gn command and repeating it. |
8 | |
12 | 9 STARTTEST |
10 :so small.vim | |
11 /^start:/ | |
12 da" | |
13 0va'a'rx | |
14 02f`da` | |
15 0fXdi" | |
16 03f'vi'ry | |
17 :set quoteescape=+*- | |
18 di` | |
19 $F"va"oha"i"rz | |
853 | 20 :" |
21 /^<begin | |
22 jfXdit | |
23 0fXdit | |
24 fXdat | |
25 0fXdat | |
26 :" | |
27 :put =matchstr(\"abcd\", \".\", 0, 2) " b | |
19 | 28 :put =matchstr(\"abcd\", \"..\", 0, 2) " bc |
29 :put =matchstr(\"abcd\", \".\", 2, 0) " c (zero and negative -> first match) | |
30 :put =matchstr(\"abcd\", \".\", 0, -1) " a | |
31 :put =match(\"abcd\", \".\", 0, 5) " -1 | |
32 :put =match(\"abcd\", \".\", 0, -1) " 0 | |
5676 | 33 :put =match('abc', '.', 0, 1) " 0 |
34 :put =match('abc', '.', 0, 2) " 1 | |
35 :put =match('abc', '.', 0, 3) " 2 | |
36 :put =match('abc', '.', 0, 4) " -1 | |
37 :put =match('abc', '.', 1, 1) " 1 | |
38 :put =match('abc', '.', 2, 1) " 2 | |
39 :put =match('abc', '.', 3, 1) " -1 | |
40 :put =match('abc', '$', 0, 1) " 3 | |
41 :put =match('abc', '$', 0, 2) " -1 | |
42 :put =match('abc', '$', 1, 1) " 3 | |
43 :put =match('abc', '$', 2, 1) " 3 | |
44 :put =match('abc', '$', 3, 1) " 3 | |
45 :put =match('abc', '$', 4, 1) " -1 | |
46 :put =match('abc', '\zs', 0, 1) " 0 | |
47 :put =match('abc', '\zs', 0, 2) " 1 | |
48 :put =match('abc', '\zs', 0, 3) " 2 | |
49 :put =match('abc', '\zs', 0, 4) " 3 | |
50 :put =match('abc', '\zs', 0, 5) " -1 | |
51 :put =match('abc', '\zs', 1, 1) " 1 | |
52 :put =match('abc', '\zs', 2, 1) " 2 | |
53 :put =match('abc', '\zs', 3, 1) " 3 | |
54 :put =match('abc', '\zs', 4, 1) " -1 | |
3701 | 55 /^foobar |
56 gncsearchmatch/one\_s*two\_s | |
57 :1 | |
58 gnd | |
59 /[a]bcdx | |
60 :1 | |
3774 | 61 2gnd/join |
62 /$ | |
63 0gnd | |
64 /\>\zs | |
65 0gnd/^ | |
66 gnd$h/\zs | |
3778 | 67 gnd/[u]niquepattern/s |
68 vlgnd | |
3857 | 69 /mother |
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 | 73 :" Make sure there is no other match y uppercase. |
74 /x59 | |
75 gggnd | |
5676 | 76 :" test repeating dgn |
77 /^Johnny | |
78 ggdgn. | |
79 :" test repeating gUgn | |
80 /^Depp | |
81 gggUgn. | |
12 | 82 :/^start:/,/^end:/wq! test.out |
83 ENDTEST | |
84 | |
85 start: "wo\"rd\\" foo | |
86 'foo' 'bar' 'piep' | |
87 bla bla `quote` blah | |
88 out " in "noXno" | |
89 "'" 'blah' rep 'buh' | |
90 bla `s*`d-`+++`l**` b`la | |
91 voo "nah" sdf " asdf" sdf " sdf" sd | |
853 | 92 |
93 <begin> | |
94 -<b>asdf<i>Xasdf</i>asdf</b>- | |
95 -<b>asdX<i>a<i />sdf</i>asdf</b>- | |
96 -<b>asdf<i>Xasdf</i>asdf</b>- | |
97 -<b>asdX<i>as<b />df</i>asdf</b>- | |
98 </begin> | |
3701 | 99 SEARCH: |
100 foobar | |
101 one | |
102 two | |
103 abcdx | abcdx | abcdx | |
3774 | 104 join |
105 lines | |
106 zero width pattern | |
107 delete first and last chars | |
3778 | 108 uniquepattern uniquepattern |
3857 | 109 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
|
110 for (i=0; i<=10; i++) |
5398 | 111 Y |
112 text | |
113 Y | |
5676 | 114 --1 |
115 Johnny | |
116 --2 | |
117 Johnny | |
118 --3 | |
119 Depp | |
120 --4 | |
121 Depp | |
122 --5 | |
12 | 123 end: |