19
|
1 Test for 'scrollbind'. <eralston@computer.org> Do not add a line below!
|
7
|
2 STARTTEST
|
|
3 :so small.vim
|
|
4 :set noscrollbind
|
|
5 :set scrollopt=ver,jump
|
|
6 :set scrolloff=2
|
|
7 :set nowrap
|
|
8 :set noequalalways
|
|
9 :set splitbelow
|
|
10 :" TEST using two windows open to one buffer, one extra empty window
|
|
11 :split
|
|
12 :new
|
|
13 t:
|
|
14 :resize 8
|
|
15 /^start of window 1$/
|
|
16 zt:
|
|
17 :set scrollbind
|
|
18 j:
|
|
19 :resize 7
|
|
20 /^start of window 2$/
|
|
21 zt:
|
|
22 :set scrollbind
|
|
23 :" -- start of tests --
|
|
24 :" TEST scrolling down
|
|
25 L5jHyybpr0tHyybpr1tL6jHyybpr2kHyybpr3:
|
|
26 :" TEST scrolling up
|
|
27 tH4kjHtHyybpr4kHyybpr5k3ktHjHyybpr6tHyybpr7:
|
|
28 :" TEST horizontal scrolling
|
|
29 :set scrollopt+=hor
|
|
30 gg"zyyG"zpGt015zly$bp"zpGky$bp"zpG:
|
|
31 k10jH7zhg0y$bp"zpGtHg0y$bp"zpG:
|
|
32 :set scrollopt-=hor
|
|
33 :" ****** tests using two different buffers *****
|
|
34 tj:
|
|
35 :close
|
|
36 t:
|
|
37 :set noscrollbind
|
|
38 :/^start of window 2$/,/^end of window 2$/y
|
|
39 :new
|
|
40 tj4"zpGp:
|
|
41 t/^start of window 1$/
|
|
42 zt:
|
|
43 :set scrollbind
|
|
44 j:
|
|
45 /^start of window 2$/
|
|
46 zt:
|
|
47 :set scrollbind
|
|
48 :" -- start of tests --
|
|
49 :" TEST scrolling down
|
|
50 L5jHyybpr0tHyybpr1tL6jHyybpr2kHyybpr3:
|
|
51 :" TEST scrolling up
|
|
52 tH4kjHtHyybpr4kHyybpr5k3ktHjHyybpr6tHyybpr7:
|
|
53 :" TEST horizontal scrolling
|
|
54 :set scrollopt+=hor
|
|
55 gg"zyyG"zpGt015zly$bp"zpGky$bp"zpG:
|
|
56 k10jH7zhg0y$bp"zpGtHg0y$bp"zpG:
|
|
57 :set scrollopt-=hor
|
|
58 :" TEST syncbind
|
|
59 t:set noscb
|
|
60 ggLj:set noscb
|
|
61 ggL:set scb
|
|
62 t:set scb
|
|
63 GjG:syncbind
|
|
64 HktHjHyybptyybp:
|
|
65 t:set noscb
|
|
66 ggLj:set noscb
|
|
67 ggL:set scb
|
|
68 t:set scb
|
|
69 tGjGt:syncbind
|
|
70 HkjHtHyybptjyybp:
|
|
71 tH3kjHtHyybptjyybp:
|
|
72 :" ***** done with tests *****
|
|
73 :w! test.out " Write contents of this file
|
|
74 :qa!
|
|
75 ENDTEST
|
|
76
|
|
77
|
|
78 start of window 1
|
|
79 . line 01 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 01
|
|
80 . line 02 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 02
|
|
81 . line 03 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 03
|
|
82 . line 04 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 04
|
|
83 . line 05 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 05
|
|
84 . line 06 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 06
|
|
85 . line 07 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 07
|
|
86 . line 08 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 08
|
|
87 . line 09 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 09
|
|
88 . line 10 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 10
|
|
89 . line 11 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 11
|
|
90 . line 12 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 12
|
|
91 . line 13 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 13
|
|
92 . line 14 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 14
|
|
93 . line 15 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ 15
|
|
94 end of window 1
|
|
95
|
|
96
|
|
97 start of window 2
|
|
98 . line 01 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 01
|
|
99 . line 02 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 02
|
|
100 . line 03 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 03
|
|
101 . line 04 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 04
|
|
102 . line 05 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 05
|
|
103 . line 06 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 06
|
|
104 . line 07 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 07
|
|
105 . line 08 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 08
|
|
106 . line 09 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 09
|
|
107 . line 10 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 10
|
|
108 . line 11 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 11
|
|
109 . line 12 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 12
|
|
110 . line 13 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 13
|
|
111 . line 14 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 14
|
|
112 . line 15 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 15
|
|
113 . line 16 ZYXWVUTSRQPONMLKJIHGREDCBA9876543210 16
|
|
114 end of window 2
|
|
115
|
|
116 end of test37.in (please don't delete this line)
|