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