Mercurial > vim
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 |
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. | |
6443 | 82 gg/a:0\@!\zs\d\+ |
83 nygnop | |
12 | 84 :/^start:/,/^end:/wq! test.out |
85 ENDTEST | |
86 | |
87 start: "wo\"rd\\" foo | |
88 'foo' 'bar' 'piep' | |
89 bla bla `quote` blah | |
90 out " in "noXno" | |
91 "'" 'blah' rep 'buh' | |
92 bla `s*`d-`+++`l**` b`la | |
93 voo "nah" sdf " asdf" sdf " sdf" sd | |
853 | 94 |
95 <begin> | |
96 -<b>asdf<i>Xasdf</i>asdf</b>- | |
97 -<b>asdX<i>a<i />sdf</i>asdf</b>- | |
98 -<b>asdf<i>Xasdf</i>asdf</b>- | |
99 -<b>asdX<i>as<b />df</i>asdf</b>- | |
100 </begin> | |
3701 | 101 SEARCH: |
102 foobar | |
103 one | |
104 two | |
105 abcdx | abcdx | abcdx | |
3774 | 106 join |
107 lines | |
108 zero width pattern | |
109 delete first and last chars | |
3778 | 110 uniquepattern uniquepattern |
3857 | 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 | 113 a:10 |
114 | |
115 a:1 | |
116 | |
117 a:20 | |
5398 | 118 Y |
119 text | |
120 Y | |
5676 | 121 --1 |
122 Johnny | |
123 --2 | |
124 Johnny | |
125 --3 | |
126 Depp | |
127 --4 | |
128 Depp | |
129 --5 | |
12 | 130 end: |