Mercurial > vim
annotate src/testdir/test44.in @ 15003:bd0d66403ac4
Added tag v8.1.0512 for changeset 9ae60773dd035818d2d378a7a2d5a14c93003557
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 05 Nov 2018 20:30:09 +0100 |
parents | c154fbd3004f |
children |
rev | line source |
---|---|
7 | 1 Tests for regexp with multi-byte encoding and various magic settings. |
19 | 2 Test matchstr() with a count and multi-byte chars. |
5351 | 3 See test99 for exactly the same test with re=2. |
7 | 4 |
5 STARTTEST | |
6 :so mbyte.vim | |
7 :set nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo | |
5351 | 8 :set re=1 |
7 | 9 /^1 |
10 /a*b\{2}c\+/e | |
11 x/\Md\*e\{2}f\+/e | |
12 x:set nomagic | |
13 /g\*h\{2}i\+/e | |
14 x/\mj*k\{2}l\+/e | |
15 x/\vm*n{2}o+/e | |
16 x/\V^aa$ | |
17 x:set magic | |
18 /\v(a)(b)\2\1\1/e | |
19 x/\V[ab]\(\[xy]\)\1 | |
20 x:" Now search for multi-byte without composing char | |
21 /ม | |
22 x:" Now search for multi-byte with composing char | |
23 /ม่ | |
24 x:" find word by change of word class | |
25 /ち\<カヨ\>は | |
24 | 26 x:" Test \%u, [\u] and friends |
6765 | 27 :" c |
24 | 28 /\%u20ac |
6765 | 29 x:" d |
30 /[\u4f7f\u5929]\+ | |
31 x:" e | |
32 /\%U12345678 | |
33 x:" f | |
34 /[\U1234abcd\u1234\uabcd] | |
35 x:" g | |
36 /\%d21879b | |
37 x:" j Test backwards search from a multi-byte char | |
4049 | 38 /x |
39 x?. | |
6765 | 40 x:" k |
41 :let @w=':%s#comb[i]nations#œ̄ṣ́m̥̄ᾱ̆́#g' | |
4356 | 42 :@w |
7404
fb61ce5915fc
commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents:
6765
diff
changeset
|
43 :" |
fb61ce5915fc
commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents:
6765
diff
changeset
|
44 :" l Test what 7.3.192 fixed |
fb61ce5915fc
commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents:
6765
diff
changeset
|
45 /^l |
fb61ce5915fc
commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents:
6765
diff
changeset
|
46 :s/ \?/ /g |
4356 | 47 :?^1?,$w! test.out |
19 | 48 :e! test.out |
49 G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב | |
50 :put =matchstr(\"אבגד\", \"..\", 0, 2) " בג | |
51 :put =matchstr(\"אבגד\", \".\", 0, 0) " א | |
52 :put =matchstr(\"אבגד\", \".\", 4, -1) " ג | |
6620 | 53 :new |
54 :$put =['dog(a', 'cat('] | |
55 /(/e+ | |
56 "ayn:bd! | |
57 :$put ='' | |
58 G"ap | |
19 | 59 :w! |
7 | 60 :qa! |
61 ENDTEST | |
62 | |
63 1 a aa abb abbccc | |
64 2 d dd dee deefff | |
65 3 g gg ghh ghhiii | |
66 4 j jj jkk jkklll | |
67 5 m mm mnn mnnooo | |
68 6 x ^aa$ x | |
69 7 (a)(b) abbaa | |
70 8 axx [ab]xx | |
71 9 หม่x อมx | |
72 a อมx หม่x | |
73 b ちカヨは | |
24 | 74 c x ¬€x |
75 d 天使x | |
76 e y | |
77 f z | |
78 g a啷bb | |
4049 | 79 j 0123❤x |
4356 | 80 k combinations |
7404
fb61ce5915fc
commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents:
6765
diff
changeset
|
81 l äö üᾱ̆́ |