Mercurial > vim
annotate src/testdir/test99.in @ 16397:7a942d92980d v8.1.1203
patch 8.1.1203: some autocmd tests are old style
commit https://github.com/vim/vim/commit/69ea587289b03e23a9fb96adffd6e8173cbc5896
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 25 20:29:00 2019 +0200
patch 8.1.1203: some autocmd tests are old style
Problem: Some autocmd tests are old style.
Solution: Turn the tests into new style. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4295)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 25 Apr 2019 20:30:05 +0200 |
parents | c154fbd3004f |
children |
rev | line source |
---|---|
5355 | 1 Tests for regexp with multi-byte encoding and various magic settings. |
2 Test matchstr() with a count and multi-byte chars. | |
3 See test44 for exactly the same test with re=1. | |
4 | |
5 STARTTEST | |
6 :so mbyte.vim | |
7 :set nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo | |
8 :set re=2 | |
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 /ち\<カヨ\>は | |
26 x:" Test \%u, [\u] and friends | |
27 /\%u20ac | |
28 x/[\u4f7f\u5929]\+ | |
29 x/\%U12345678 | |
30 x/[\U1234abcd\u1234\uabcd] | |
31 x/\%d21879b | |
32 x:" Test backwards search from a multi-byte char | |
33 /x | |
34 x?. | |
35 x:let @w=':%s#comb[i]nations#œ̄ṣ́m̥̄ᾱ̆́#g' | |
36 :@w | |
7404
fb61ce5915fc
commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents:
5355
diff
changeset
|
37 :" |
fb61ce5915fc
commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents:
5355
diff
changeset
|
38 :" l Test what 7.3.192 fixed |
fb61ce5915fc
commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents:
5355
diff
changeset
|
39 /^l |
fb61ce5915fc
commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents:
5355
diff
changeset
|
40 :s/ \?/ /g |
5355 | 41 :?^1?,$w! test.out |
42 :e! test.out | |
43 G:put =matchstr(\"אבגד\", \".\", 0, 2) " ב | |
44 :put =matchstr(\"אבגד\", \"..\", 0, 2) " בג | |
45 :put =matchstr(\"אבגד\", \".\", 0, 0) " א | |
46 :put =matchstr(\"אבגד\", \".\", 4, -1) " ג | |
47 :w! | |
48 :qa! | |
49 ENDTEST | |
50 | |
51 1 a aa abb abbccc | |
52 2 d dd dee deefff | |
53 3 g gg ghh ghhiii | |
54 4 j jj jkk jkklll | |
55 5 m mm mnn mnnooo | |
56 6 x ^aa$ x | |
57 7 (a)(b) abbaa | |
58 8 axx [ab]xx | |
59 9 หม่x อมx | |
60 a อมx หม่x | |
61 b ちカヨは | |
62 c x ¬€x | |
63 d 天使x | |
64 e y | |
65 f z | |
66 g a啷bb | |
67 j 0123❤x | |
68 k combinations | |
7404
fb61ce5915fc
commit https://github.com/vim/vim/commit/96c664af27ec9535f2c3cd9b889faad3e9460ad6
Christian Brabandt <cb@256bit.org>
parents:
5355
diff
changeset
|
69 l äö üᾱ̆́ |