comparison src/testdir/test44.in @ 19:a81bc802c17c v7.0011

updated for version 7.0011
author vimboss
date Mon, 19 Jul 2004 20:55:54 +0000
parents 3fc0f57ecb91
children 8ff7fd162d3c
comparison
equal deleted inserted replaced
18:293621502c4d 19:a81bc802c17c
1 Tests for regexp with multi-byte encoding and various magic settings. 1 Tests for regexp with multi-byte encoding and various magic settings.
2 Test matchstr() with a count and multi-byte chars.
2 3
3 STARTTEST 4 STARTTEST
4 :so mbyte.vim 5 :so mbyte.vim
5 :set nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo 6 :set nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo
6 /^1 7 /^1
19 x:" Now search for multi-byte with composing char 20 x:" Now search for multi-byte with composing char
20 /ม่ 21 /ม่
21 x:" find word by change of word class 22 x:" find word by change of word class
22 /ち\<カヨ\>は 23 /ち\<カヨ\>は
23 x:?^1?,$w! test.out 24 x:?^1?,$w! test.out
25 :e! test.out
26 G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב
27 :put =matchstr(\"אבגד\", \"..\", 0, 2) " בג
28 :put =matchstr(\"אבגד\", \".\", 0, 0) " א
29 :put =matchstr(\"אבגד\", \".\", 4, -1) " ג
30 :w!
24 :qa! 31 :qa!
25 ENDTEST 32 ENDTEST
26 33
27 1 a aa abb abbccc 34 1 a aa abb abbccc
28 2 d dd dee deefff 35 2 d dd dee deefff