7
|
1 Tests for :right on text with embedded TAB.
|
|
2 Also test formatting a paragraph.
|
|
3 Also test undo after ":%s" and formatting.
|
|
4
|
|
5 STARTTEST
|
|
6 :so small.vim
|
|
7 :set tw=65
|
|
8
|
|
9 :/^\s*test for :left/,/^\s*test for :center/ left
|
|
10 :/^\s*test for :center/,/^\s*test for :right/ center
|
|
11 :/^\s*test for :right/,/^xxx/-1 right
|
|
12 :set fo+=tcroql tw=72
|
|
13 /xxxxxxxx$
|
|
14 0gq6kk
|
|
15 :set nocp viminfo+=nviminfo
|
|
16 :" undo/redo here to make the next undo only work on the following changes
|
|
17 u
|
|
18 :map gg :.,.+2s/^/x/<CR>kk:set tw=3<CR>gqq
|
|
19 /^aa
|
|
20 ggu
|
|
21 :?test for :left?,$w! test.out
|
|
22 :qa!
|
|
23 ENDTEST
|
|
24
|
|
25 test for :left
|
|
26 a a
|
|
27 fa a
|
|
28 dfa a
|
|
29 sdfa a
|
|
30 asdfa a
|
|
31 xasdfa a
|
|
32 asxxdfa a
|
|
33
|
|
34 test for :center
|
|
35 a a
|
|
36 fa afd asdf
|
|
37 dfa a
|
|
38 sdfa afd asdf
|
|
39 asdfa a
|
|
40 xasdfa asdfasdfasdfasdfasdf
|
|
41 asxxdfa a
|
|
42
|
|
43 test for :right
|
|
44 a a
|
|
45 fa a
|
|
46 dfa a
|
|
47 sdfa a
|
|
48 asdfa a
|
|
49 xasdfa a
|
|
50 asxxdfa a
|
|
51 asxa;ofa a
|
|
52 asdfaqwer a
|
|
53 a ax
|
|
54 fa ax
|
|
55 dfa ax
|
|
56 sdfa ax
|
|
57 asdfa ax
|
|
58 xasdfa ax
|
|
59 asxxdfa ax
|
|
60 asxa;ofa ax
|
|
61 asdfaqwer ax
|
|
62 a axx
|
|
63 fa axx
|
|
64 dfa axx
|
|
65 sdfa axx
|
|
66 asdfa axx
|
|
67 xasdfa axx
|
|
68 asxxdfa axx
|
|
69 asxa;ofa axx
|
|
70 asdfaqwer axx
|
|
71 a axxx
|
|
72 fa axxx
|
|
73 dfa axxx
|
|
74 sdfa axxx
|
|
75 asdfa axxx
|
|
76 xasdfa axxx
|
|
77 asxxdfa axxx
|
|
78 asxa;ofa axxx
|
|
79 asdfaqwer axxx
|
|
80 a axxxo
|
|
81 fa axxxo
|
|
82 dfa axxxo
|
|
83 sdfa axxxo
|
|
84 asdfa axxxo
|
|
85 xasdfa axxxo
|
|
86 asxxdfa axxxo
|
|
87 asxa;ofa axxxo
|
|
88 asdfaqwer axxxo
|
|
89 a axxxoi
|
|
90 fa axxxoi
|
|
91 dfa axxxoi
|
|
92 sdfa axxxoi
|
|
93 asdfa axxxoi
|
|
94 xasdfa axxxoi
|
|
95 asxxdfa axxxoi
|
|
96 asxa;ofa axxxoi
|
|
97 asdfaqwer axxxoi
|
|
98 a axxxoik
|
|
99 fa axxxoik
|
|
100 dfa axxxoik
|
|
101 sdfa axxxoik
|
|
102 asdfa axxxoik
|
|
103 xasdfa axxxoik
|
|
104 asxxdfa axxxoik
|
|
105 asxa;ofa axxxoik
|
|
106 asdfaqwer axxxoik
|
|
107 a axxxoike
|
|
108 fa axxxoike
|
|
109 dfa axxxoike
|
|
110 sdfa axxxoike
|
|
111 asdfa axxxoike
|
|
112 xasdfa axxxoike
|
|
113 asxxdfa axxxoike
|
|
114 asxa;ofa axxxoike
|
|
115 asdfaqwer axxxoike
|
|
116 a axxxoikey
|
|
117 fa axxxoikey
|
|
118 dfa axxxoikey
|
|
119 sdfa axxxoikey
|
|
120 asdfa axxxoikey
|
|
121 xasdfa axxxoikey
|
|
122 asxxdfa axxxoikey
|
|
123 asxa;ofa axxxoikey
|
|
124 asdfaqwer axxxoikey
|
|
125
|
|
126 xxxxx xx xxxxxx
|
|
127 xxxxxxx xxxxxxxxx xxx xxxx xxxxx xxxxx xxx xx
|
|
128 xxxxxxxxxxxxxxxxxx xxxxx xxxx, xxxx xxxx xxxx xxxx xxx xx xx
|
|
129 xx xxxxxxx. xxxx xxxx.
|
|
130
|
|
131 > xx xx, xxxx xxxx xxx xxxx xxx xxxxx xxx xxx xxxxxxx xxx xxxxx
|
|
132 > xxxxxx xxxxxxx: xxxx xxxxxxx, xx xxxxxx xxxx xxxxxxxxxx
|
|
133
|
|
134 aa aa aa aa
|
|
135 bb bb bb bb
|
|
136 cc cc cc cc
|