blob: fa663fbf02d292b461f3e43492288ab2fc25886b [file] [log] [blame]
Bram Moolenaardb913952012-06-29 12:54:53 +02001start:
2[1, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
3[1, 2, function('strlen'), {'a': 1}]
4Vim(put):E684:
5[0, 'as''d', [1, 2, function('strlen'), {'a': 1}]]
6[0, function('strlen'), [1, 2, function('strlen'), {'a': 1}]]
7['-1', '1', 'b']
8'-1' : {'a': 1}
9'1' : 'asd'
10'b' : [1, 2, function('strlen')]
11[0, function('strlen')]
12[3]
13{'1': 'asd', 'b': [1, 2, function('strlen')]}
14[0, 1, 2, 3]
15[0, 1, 2, 3]
16[0, 1, 3]
17[0, 1]
18[0, 1]
19[0, 1]
20[0, 1, 2, 3]
21[0, 1, 2, 3]
22[0, 2, 3]
23[2, 3]
24[2, 3]
25[2, 3]
26['a', 0, 1, 2, 3]
27[0, 'b', 2, 3]
28[0, 1, 'c']
29[0, 1, 2, 3, 'd']
30[0, 1, 2, 'e', 3]
31['f', 2, 3]
32[0, 1, 'g', 2, 3]
33['h']
34[0, 1, 2, 3]
35[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd']
36[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}]
37[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New']
38Vim(py3):E725:
39Vim(py3):E117:
40[0.0, 0.0]
Bram Moolenaaraf6abb92013-04-24 13:04:26 +020041KeyError
Bram Moolenaarc11073c2012-09-05 19:17:42 +020042TypeError
43TypeError
44ValueError
45TypeError
46TypeError
Bram Moolenaar66b79852012-09-21 14:00:35 +020047d : locked:0;scope:0
48dl : locked:1;scope:0
49v: : locked:2;scope:1
50g: : locked:0;scope:2
51d:{'abc': 1}
52dl:{'def': 1}
53l : locked:0
54ll : locked:1
55l:[0]
56ll:[1]
Bram Moolenaardb913952012-06-29 12:54:53 +020057[0, 1, 2]
58['a', 'b']
59['c', 1]
60['d', ['e']]
Bram Moolenaardb913952012-06-29 12:54:53 +0200610.0
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020062"\0": Vim(let):E859:
63{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010064undefined_name: Vim(let):Trace
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020065vim: Vim(let):E859:
Bram Moolenaar76d711c2013-02-13 14:17:08 +010066[1]
67[1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +020068Abc
69bac
70def
71bar
Bram Moolenaara4720012013-05-15 16:27:37 +020072jkl
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +020073>>> paste
74 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +020075 p/wopts1! KeyError
76 inv: 2! KeyError
77 wopts1! KeyError
78 wopts2! KeyError
79 wopts3! KeyError
80 p/bopts1! KeyError
81 inv: 2! KeyError
82 bopts1! KeyError
83 bopts2! KeyError
84 bopts3! KeyError
85 G: 1
86 W: 1:1 2:1 3:1 4:1
87 B: 1:1 2:1 3:1 4:1
88 del wopts3! KeyError
89 del bopts3! KeyError
90 G: 1
91 W: 1:1 2:1 3:1 4:1
92 B: 1:1 2:1 3:1 4:1
93>>> previewheight
94 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +020095 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +020096 p/wopts1! KeyError
97 inv: 'a'! KeyError
98 wopts1! KeyError
99 wopts2! KeyError
100 wopts3! KeyError
101 p/bopts1! KeyError
102 inv: 'a'! KeyError
103 bopts1! KeyError
104 bopts2! KeyError
105 bopts3! KeyError
106 G: 5
107 W: 1:5 2:5 3:5 4:5
108 B: 1:5 2:5 3:5 4:5
109 del wopts3! KeyError
110 del bopts3! KeyError
111 G: 5
112 W: 1:5 2:5 3:5 4:5
113 B: 1:5 2:5 3:5 4:5
114>>> operatorfunc
115 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200116 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200117 p/wopts1! KeyError
118 inv: 2! KeyError
119 wopts1! KeyError
120 wopts2! KeyError
121 wopts3! KeyError
122 p/bopts1! KeyError
123 inv: 2! KeyError
124 bopts1! KeyError
125 bopts2! KeyError
126 bopts3! KeyError
127 G: 'A'
128 W: 1:'A' 2:'A' 3:'A' 4:'A'
129 B: 1:'A' 2:'A' 3:'A' 4:'A'
130 del wopts3! KeyError
131 del bopts3! KeyError
132 G: 'A'
133 W: 1:'A' 2:'A' 3:'A' 4:'A'
134 B: 1:'A' 2:'A' 3:'A' 4:'A'
135>>> number
136 p/gopts1! KeyError
137 inv: 0! KeyError
138 gopts1! KeyError
139 p/wopts1: False
140 p/bopts1! KeyError
141 inv: 0! KeyError
142 bopts1! KeyError
143 bopts2! KeyError
144 bopts3! KeyError
145 G: 0
146 W: 1:1 2:1 3:0 4:0
147 B: 1:1 2:1 3:0 4:0
148 del wopts3! ValueError
149 del bopts3! KeyError
150 G: 0
151 W: 1:1 2:1 3:0 4:0
152 B: 1:1 2:1 3:0 4:0
153>>> numberwidth
154 p/gopts1! KeyError
155 inv: -100! KeyError
156 gopts1! KeyError
157 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200158 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200159 p/bopts1! KeyError
160 inv: -100! KeyError
161 bopts1! KeyError
162 bopts2! KeyError
163 bopts3! KeyError
164 G: 8
165 W: 1:3 2:5 3:2 4:8
166 B: 1:3 2:5 3:2 4:8
167 del wopts3! ValueError
168 del bopts3! KeyError
169 G: 8
170 W: 1:3 2:5 3:2 4:8
171 B: 1:3 2:5 3:2 4:8
172>>> colorcolumn
173 p/gopts1! KeyError
174 inv: 'abc'! KeyError
175 gopts1! KeyError
176 p/wopts1: b''
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200177 inv: 'abc'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200178 p/bopts1! KeyError
179 inv: 'abc'! KeyError
180 bopts1! KeyError
181 bopts2! KeyError
182 bopts3! KeyError
183 G: ''
184 W: 1:'+2' 2:'+3' 3:'+1' 4:''
185 B: 1:'+2' 2:'+3' 3:'+1' 4:''
186 del wopts3! ValueError
187 del bopts3! KeyError
188 G: ''
189 W: 1:'+2' 2:'+3' 3:'+1' 4:''
190 B: 1:'+2' 2:'+3' 3:'+1' 4:''
191>>> statusline
192 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200193 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200194 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200195 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200196 p/bopts1! KeyError
197 inv: 0! KeyError
198 bopts1! KeyError
199 bopts2! KeyError
200 bopts3! KeyError
201 G: '1'
202 W: 1:'2' 2:'4' 3:'1' 4:'1'
203 B: 1:'2' 2:'4' 3:'1' 4:'1'
204 del bopts3! KeyError
205 G: '1'
206 W: 1:'2' 2:'1' 3:'1' 4:'1'
207 B: 1:'2' 2:'1' 3:'1' 4:'1'
208>>> autoindent
209 p/gopts1! KeyError
210 inv: 2! KeyError
211 gopts1! KeyError
212 p/wopts1! KeyError
213 inv: 2! KeyError
214 wopts1! KeyError
215 wopts2! KeyError
216 wopts3! KeyError
217 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200218 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200219 W: 1:0 2:1 3:0 4:1
220 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200221 del wopts3! KeyError
222 del bopts3! ValueError
223 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200224 W: 1:0 2:1 3:0 4:1
225 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200226>>> shiftwidth
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200227 p/gopts1! KeyError
228 inv: 3! KeyError
229 gopts1! KeyError
230 p/wopts1! KeyError
231 inv: 3! KeyError
232 wopts1! KeyError
233 wopts2! KeyError
234 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200235 p/bopts1: 8
236 G: 8
237 W: 1:0 2:2 3:8 4:1
238 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200239 del wopts3! KeyError
240 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200241 G: 8
242 W: 1:0 2:2 3:8 4:1
243 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200244>>> omnifunc
245 p/gopts1! KeyError
246 inv: 1! KeyError
247 gopts1! KeyError
248 p/wopts1! KeyError
249 inv: 1! KeyError
250 wopts1! KeyError
251 wopts2! KeyError
252 wopts3! KeyError
253 p/bopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200254 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200255 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200256 W: 1:'A' 2:'B' 3:'' 4:'C'
257 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200258 del wopts3! KeyError
259 del bopts3! ValueError
260 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200261 W: 1:'A' 2:'B' 3:'' 4:'C'
262 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200263>>> preserveindent
264 p/gopts1! KeyError
265 inv: 2! KeyError
266 gopts1! KeyError
267 p/wopts1! KeyError
268 inv: 2! KeyError
269 wopts1! KeyError
270 wopts2! KeyError
271 wopts3! KeyError
272 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200273 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200274 W: 1:0 2:1 3:0 4:1
275 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200276 del wopts3! KeyError
277 del bopts3! ValueError
278 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200279 W: 1:0 2:1 3:0 4:1
280 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200281>>> path
282 p/gopts1: b'.,/usr/include,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200283 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200284 p/wopts1! KeyError
285 inv: 0! KeyError
286 wopts1! KeyError
287 wopts2! KeyError
288 wopts3! KeyError
289 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200290 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200291 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200292 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
293 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200294 del wopts3! KeyError
295 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200296 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
297 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200298First line
299First line
300def
301First line
302Second line
303Third line
304(7, 2)
305<buffer test87.in><buffer >
306baz
307bar
308Second line
309Third line
310foo
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200311i:<buffer test87.in>
312i2:<buffer test87.in>
313i:<buffer a>
314i3:<buffer test87.in>
3151:<buffer test87.in>=<buffer test87.in>
3166:<buffer a>=<buffer a>
3177:<buffer b>=<buffer b>
3188:<buffer c>=<buffer c>
3194
320i4:<buffer test87.in>
321i4:<buffer test87.in>
322StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200323Number of tabs: 4
324Current tab pages:
325 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
326 Windows:
Bram Moolenaar2a0f3d32013-05-21 22:23:56 +0200327 <window object (unknown)>(1): displays buffer <buffer test87.in>; cursor is at (27, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200328 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
329 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200330 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200331 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
332 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200333 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
334 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200335 <tabpage 3>(4): 4 windows, current is <window 0>
336 Windows:
337 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
338 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
339 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
340 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
341Number of windows in current tab page: 4
342Current tab page: <tabpage 3>
343Current window: <window 0>: <window 0> is <window 0>
344Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
345ValueError at assigning foreign tab window
346Type error at assigning None to vim.current.window
347Type error at assigning None to vim.current.tabpage
348Type error at assigning None to vim.current.buffer
349Current tab page: <tabpage 2>
350Current window: <window 0>
351Current buffer: <buffer test87.in>
352Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200353vim.vars:Dictionary:True
354vim.options:Options:True
355vim.bindeval("{}"):Dictionary:True
356vim.bindeval("[]"):List:True
357vim.bindeval("function('tr')"):Function:True
358vim.current.buffer:Buffer:True
359vim.current.range:Range:True
360vim.current.window:Window:True
361vim.current.tabpage:TabPage:True
Bram Moolenaara7b64ce2013-05-21 20:40:40 +0200362(<class 'vim.error'>, error('abc',))
363(<class 'vim.error'>, error('def',))
364(<class 'vim.error'>, error('ghi',))
365(<class 'vim.error'>, error('Vim(echoerr):jkl',))
366(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
367(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))