annotate src/testdir/test44.in @ 840:2c885fab04e3 v7.0e06

updated for version 7.0e06
author vimboss
date Sat, 22 Apr 2006 22:33:57 +0000
parents 8ff7fd162d3c
children 59130cd78dfc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Tests for regexp with multi-byte encoding and various magic settings.
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
2 Test matchstr() with a count and multi-byte chars.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :so mbyte.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :set nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 /^1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 /a*b\{2}c\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 x/\Md\*e\{2}f\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 x:set nomagic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 /g\*h\{2}i\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 x/\mj*k\{2}l\+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 x/\vm*n{2}o+/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 x/\V^aa$
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 x:set magic
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 /\v(a)(b)\2\1\1/e
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 x/\V[ab]\(\[xy]\)\1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 x:" Now search for multi-byte without composing char
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 /ม
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 x:" Now search for multi-byte with composing char
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 /ม่
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 x:" find word by change of word class
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 /ち\<カヨ\>は
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
24 x:" Test \%u, [\u] and friends
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
25 /\%u20ac
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
26 x/[\u4f7f\u5929]\+
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
27 x/\%U12345678
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
28 x/[\U1234abcd\u1234\uabcd]
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
29 x/\%d21879b
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 x:?^1?,$w! test.out
19
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
31 :e! test.out
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
32 G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
33 :put =matchstr(\"אבגד\", \"..\", 0, 2) " בג
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
34 :put =matchstr(\"אבגד\", \".\", 0, 0) " א
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
35 :put =matchstr(\"אבגד\", \".\", 4, -1) " ג
a81bc802c17c updated for version 7.0011
vimboss
parents: 7
diff changeset
36 :w!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 1 a aa abb abbccc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 2 d dd dee deefff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 3 g gg ghh ghhiii
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 4 j jj jkk jkklll
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 5 m mm mnn mnnooo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 6 x ^aa$ x
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 7 (a)(b) abbaa
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 8 axx [ab]xx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 9 หม่x อมx
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 a อมx หม่x
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 b ちカヨは
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
51 c x ¬€x
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
52 d 天使x
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
53 e y
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
54 f z
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 19
diff changeset
55 g a啷bb