7
|
1 Tests for regexp with various magic settings.
|
|
2
|
|
3 STARTTEST
|
3296
|
4 :so small.vim
|
7
|
5 :set nocompatible viminfo+=nviminfo
|
|
6 /^1
|
|
7 /a*b\{2}c\+/e
|
|
8 x/\Md\*e\{2}f\+/e
|
|
9 x:set nomagic
|
|
10 /g\*h\{2}i\+/e
|
|
11 x/\mj*k\{2}l\+/e
|
|
12 x/\vm*n{2}o+/e
|
|
13 x/\V^aa$
|
|
14 x:set magic
|
|
15 /\v(a)(b)\2\1\1/e
|
|
16 x/\V[ab]\(\[xy]\)\1
|
3252
|
17 x:$
|
|
18 :set undolevels=100
|
|
19 dv?bar?
|
|
20 Yup:"
|
|
21 :?^1?,$w! test.out
|
7
|
22 :qa!
|
|
23 ENDTEST
|
|
24
|
|
25 1 a aa abb abbccc
|
|
26 2 d dd dee deefff
|
|
27 3 g gg ghh ghhiii
|
|
28 4 j jj jkk jkklll
|
|
29 5 m mm mnn mnnooo
|
|
30 6 x ^aa$ x
|
|
31 7 (a)(b) abbaa
|
|
32 8 axx [ab]xx
|
3252
|
33 9 foobar
|
|
34
|