Mercurial > vim
annotate src/testdir/test14.in @ 14989:85467d180844 v8.1.0506
patch 8.1.0506: modeline test fails when run by root
commit https://github.com/vim/vim/commit/9691f82f862ed18c2e3e48f9d2cd902bb947f803
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 3 19:06:25 2018 +0100
patch 8.1.0506: modeline test fails when run by root
Problem: Modeline test fails when run by root.
Solution: Set 'modeline' for the test. (James McCoy, closes https://github.com/vim/vim/issues/3592)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 03 Nov 2018 19:15:08 +0100 |
parents | ae45d497868f |
children |
rev | line source |
---|---|
7 | 1 Tests for "vaBiB", end could be wrong. |
2 Also test ":s/pat/sub/" with different ~s in sub. | |
3 Also test for ^Vxff and ^Vo123 in Insert mode. | |
4 Also test "[m", "]m", "[M" and "]M" | |
4240 | 5 Also test search() |
7 | 6 |
7 STARTTEST | |
8 :so small.vim | |
11091
ae45d497868f
patch 8.0.0433: beeps when running tests
Christian Brabandt <cb@256bit.org>
parents:
5616
diff
changeset
|
9 :set belloff=all |
7 | 10 /Start cursor here |
11 vaBiBD:?Bug?,/Piece/-2w! test.out | |
12 /^- Bug | |
13 :s/u/~u~/ | |
14 :s/i/~u~/ | |
15 :s/o/~~~/ | |
16 :.w >>test.out | |
17 :if has("ebcdic") | |
18 : let tt = "o\<C-V>193\<C-V>xc2\<C-V>o303 \<C-V>90a\<C-V>xfg\<C-V>o578\<Esc>" | |
19 :else | |
20 : let tt = "o\<C-V>65\<C-V>x42\<C-V>o103 \<C-V>33a\<C-V>xfg\<C-V>o78\<Esc>" | |
21 :endif | |
22 :exe "normal " . tt | |
1405 | 23 :unlet tt |
7 | 24 :.w >>test.out |
25 :set vb | |
26 /^Piece | |
27 2]maA:.w >>test.out | |
28 j]maB:.w >>test.out | |
29 ]maC:.w >>test.out | |
30 [maD:.w >>test.out | |
31 k2[maE:.w >>test.out | |
32 3[maF:.w >>test.out | |
33 ]MaG:.w >>test.out | |
34 j2]MaH:.w >>test.out | |
35 ]M]MaI:.w >>test.out | |
36 2[MaJ:.w >>test.out | |
37 k[MaK:.w >>test.out | |
38 3[MaL:.w >>test.out | |
4240 | 39 :" |
40 /^foobar | |
41 :let startline = line('.') | |
42 :call search('foobar', 'c') | |
43 :call append(line('$'), line('.') - startline) | |
44 j:call search('^$', 'c') | |
45 :call append(line('$'), line('.') - startline) | |
46 :call search('^$', 'bc') | |
47 :call append(line('$'), line('.') - startline) | |
4252 | 48 /two |
49 :call search('.', 'c') | |
50 :call append(line('$'), getline('.')[col('.') - 1:]) | |
5606 | 51 :" |
52 /^substitute | |
53 :s/foo/bar/ | |
54 :$put =@/ | |
55 /^substitute | |
56 :keeppatterns s/asdf/xyz/ | |
57 :$put =@/ | |
58 /^substitute | |
59 Y:$put =@0 | |
5616 | 60 /bar /e |
61 :$put =@0 | |
62 -:keeppatterns /xyz | |
63 0dn:/^search()/,$w >>test.out | |
7 | 64 :qa! |
65 ENDTEST | |
66 | |
67 - Bug in "vPPPP" on this text (Webb): | |
68 { | |
69 cmd; | |
70 { | |
71 cmd; /* <-- Start cursor here */ | |
72 { | |
73 } | |
74 } | |
75 } | |
76 | |
77 Piece of Java | |
78 { | |
79 tt m1 { | |
80 t1; | |
81 } e1 | |
82 | |
83 tt m2 { | |
84 t2; | |
85 } e2 | |
86 | |
87 tt m3 { | |
88 if (x) | |
89 { | |
90 t3; | |
91 } | |
92 } e3 | |
93 } | |
4240 | 94 |
95 foobar | |
96 | |
5606 | 97 substitute foo asdf |
4240 | 98 |
4252 | 99 one two |
4240 | 100 search() |