Mercurial > vim
annotate src/testdir/test29.ok @ 5747:ddc3f32a4b21 v7.4.218
updated for version 7.4.218
Problem: It's not easy to remove duplicates from a list.
Solution: Add the uniq() function. (LCD)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 25 Mar 2014 18:24:23 +0100 |
parents | 297771eff080 |
children | 81c26975e8f9 |
rev | line source |
---|---|
7 | 1 asdfasdf. asdf |
2 asdfasdf. asdf | |
3 asdfasdf. asdf | |
4 asdfasdf. asdf | |
5 asdfasdf. asdf | |
6 asdfasdf. asdf | |
7 asdfasdf. asdf | |
8 asdfasdf asdf | |
9 asdfasdf asdf | |
10 asdfasdf asdf | |
11 asdfasdf asdf | |
12 asdfasdf asdf | |
13 asdfasdf asdf | |
14 asdfasdf asdf | |
2291
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
15 zx cvn. as dfg? hjkl iop! ert ernop |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
16 zx cvn. as dfg? hjkl iop! ert ernop |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
17 |
7 | 18 asdfasdf. asdf |
19 asdfasdf. asdf | |
20 asdfasdf. asdf | |
21 asdfasdf. asdf | |
22 asdfasdf. asdf | |
23 asdfasdf. asdf | |
24 asdfasdf. asdf | |
25 asdfasdf asdf | |
26 asdfasdf asdf | |
27 asdfasdf asdf | |
28 asdfasdf asdf | |
29 asdfasdf asdf | |
30 asdfasdf asdf | |
31 asdfasdf asdf | |
2291
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
32 zx cvn. as dfg? hjkl iop! ert enop |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
33 zx cvn. as dfg? hjkl iop! ert ernop |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
34 |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
35 asdfasdf. asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
36 asdfasdf. asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
37 asdfasdf. asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
38 asdfasdf. asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
39 asdfasdf. asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
40 asdfasdf. asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
41 asdfasdf. asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
42 asdfasdf asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
43 asdfasdf asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
44 asdfasdf asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
45 asdfasdf asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
46 asdfasdf asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
47 asdfasdf asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
48 asdfasdf asdf |
f412e141c821
Improve test for joining lines. (Milan Vancura)
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
49 zx cvn. as dfg? hjkl iop! ert a |
3562 | 50 |
51 | |
52 { | |
53 /* Make sure the previous comment leader is not removed. */ | |
54 /* Make sure the previous comment leader is not removed. */ | |
55 // Should the next comment leader be left alone? Yes. | |
56 // Should the next comment leader be left alone? Yes. | |
57 /* Here the comment leader should be left intact. */ // And so should this one. | |
58 /* Here the comment leader should be left intact. */ // And so should this one. | |
59 if (condition) // Remove the next comment leader! OK, I will. | |
60 action(); | |
61 if (condition) // Remove the next comment leader! OK, I will. | |
62 action(); | |
63 } | |
64 | |
65 | |
66 { | |
67 /* Make sure the previous comment leader is not removed. */ | |
68 /* Make sure the previous comment leader is not removed. */ | |
3580 | 69 /* List: item1 foo bar baz foo bar baz item2 foo bar baz foo bar baz */ |
70 /* List: item1 foo bar baz foo bar baz item2 foo bar baz foo bar baz */ | |
3562 | 71 // Should the next comment leader be left alone? Yes. |
72 // Should the next comment leader be left alone? Yes. | |
73 /* Here the comment leader should be left intact. */ // And so should this one. | |
74 /* Here the comment leader should be left intact. */ // And so should this one. | |
75 if (condition) // Remove the next comment leader! OK, I will. | |
76 action(); | |
77 if (condition) // Remove the next comment leader! OK, I will. | |
78 action(); | |
79 int i = 7 /* foo *// 3 // comment | |
80 ; | |
81 int i = 7 /* foo *// 3 // comment | |
82 ; | |
83 ># Note that the last character of the ending comment leader (left angle bracket) is a comment leader itself. Make sure that this comment leader is not removed from the next line #< < On this line a new comment is opened which spans 2 lines. This comment should retain its comment leader. | |
84 ># Note that the last character of the ending comment leader (left angle bracket) is a comment leader itself. Make sure that this comment leader is not removed from the next line #< < On this line a new comment is opened which spans 2 lines. This comment should retain its comment leader. | |
85 | |
86 Some code!// Make sure backspacing does not remove this comment leader. | |
87 } | |
88 |