Mercurial > vim
annotate src/testdir/test99.in @ 11537:e0eb2de60f09 v8.0.0651
patch 8.0.0651: build failure without the auto command feature
commit https://github.com/vim/vim/commit/157069b04e64eff72d2b34a2f727dfb6e2190cf3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 22 14:56:12 2017 +0200
patch 8.0.0651: build failure without the auto command feature
Problem: Build failure without the auto command feature.
Solution: Add #ifdef. (closes https://github.com/vim/vim/issues/1782)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 22 Jun 2017 15:00:04 +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 äö üᾱ̆́ |