Mercurial > vim
annotate src/testdir/test53.in @ 5462:42927712b3d9 v7.4.081
updated for version 7.4.081
Problem: Wrong logic when ANALYZE is "yes".
Solution: Use or instead of and. (KF Leong)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 09 Nov 2013 02:32:18 +0100 |
parents | eb33cadafcab |
children | 9ac2fc63501d |
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 | |
12 | 7 STARTTEST |
8 :so small.vim | |
9 /^start:/ | |
10 da" | |
11 0va'a'rx | |
12 02f`da` | |
13 0fXdi" | |
14 03f'vi'ry | |
15 :set quoteescape=+*- | |
16 di` | |
17 $F"va"oha"i"rz | |
853 | 18 :" |
19 /^<begin | |
20 jfXdit | |
21 0fXdit | |
22 fXdat | |
23 0fXdat | |
24 :" | |
25 :put =matchstr(\"abcd\", \".\", 0, 2) " b | |
19 | 26 :put =matchstr(\"abcd\", \"..\", 0, 2) " bc |
27 :put =matchstr(\"abcd\", \".\", 2, 0) " c (zero and negative -> first match) | |
28 :put =matchstr(\"abcd\", \".\", 0, -1) " a | |
29 :put =match(\"abcd\", \".\", 0, 5) " -1 | |
30 :put =match(\"abcd\", \".\", 0, -1) " 0 | |
3701 | 31 /^foobar |
32 gncsearchmatch/one\_s*two\_s | |
33 :1 | |
34 gnd | |
35 /[a]bcdx | |
36 :1 | |
3774 | 37 2gnd/join |
38 /$ | |
39 0gnd | |
40 /\>\zs | |
41 0gnd/^ | |
42 gnd$h/\zs | |
3778 | 43 gnd/[u]niquepattern/s |
44 vlgnd | |
3857 | 45 /mother |
46 :set selection=exclusive | |
5064
8875401008da
updated for version 7.3.1275
Bram Moolenaar <bram@vim.org>
parents:
3857
diff
changeset
|
47 $cgNmongoose/i |
8875401008da
updated for version 7.3.1275
Bram Moolenaar <bram@vim.org>
parents:
3857
diff
changeset
|
48 cgnj |
5398 | 49 :" Make sure there is no other match y uppercase. |
50 /x59 | |
51 gggnd | |
12 | 52 :/^start:/,/^end:/wq! test.out |
53 ENDTEST | |
54 | |
55 start: "wo\"rd\\" foo | |
56 'foo' 'bar' 'piep' | |
57 bla bla `quote` blah | |
58 out " in "noXno" | |
59 "'" 'blah' rep 'buh' | |
60 bla `s*`d-`+++`l**` b`la | |
61 voo "nah" sdf " asdf" sdf " sdf" sd | |
853 | 62 |
63 <begin> | |
64 -<b>asdf<i>Xasdf</i>asdf</b>- | |
65 -<b>asdX<i>a<i />sdf</i>asdf</b>- | |
66 -<b>asdf<i>Xasdf</i>asdf</b>- | |
67 -<b>asdX<i>as<b />df</i>asdf</b>- | |
68 </begin> | |
3701 | 69 SEARCH: |
70 foobar | |
71 one | |
72 two | |
73 abcdx | abcdx | abcdx | |
3774 | 74 join |
75 lines | |
76 zero width pattern | |
77 delete first and last chars | |
3778 | 78 uniquepattern uniquepattern |
3857 | 79 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
|
80 for (i=0; i<=10; i++) |
5398 | 81 Y |
82 text | |
83 Y | |
12 | 84 end: |