blob: 0945396d6cf6619c7e72e28e04e323191eb005e1 [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}]]
Bram Moolenaara9922d62013-05-30 13:01:18 +02007[b'-1', b'0', b'1', b'b']
8[-1, <vim.dictionary object at >, <vim.list object at >, b'asd']
9[(b'-1', <vim.dictionary object at >), (b'0', -1), (b'1', b'asd'), (b'b', <vim.list object at >)]
Bram Moolenaardb913952012-06-29 12:54:53 +020010'-1' : {'a': 1}
Bram Moolenaara9922d62013-05-30 13:01:18 +020011'0' : -1
Bram Moolenaardb913952012-06-29 12:54:53 +020012'1' : 'asd'
13'b' : [1, 2, function('strlen')]
14[0, function('strlen')]
15[3]
Bram Moolenaara9922d62013-05-30 13:01:18 +020016[1, 2, function('strlen')]
17[1, 2, function('strlen')]
181
19'asd'
202
21True
22False
23True
24False
25[b'0']
26{'0': -1}
27(b'', -1)
28None
29[]
Bram Moolenaardb913952012-06-29 12:54:53 +020030[0, 1, 2, 3]
31[0, 1, 2, 3]
32[0, 1, 3]
33[0, 1]
34[0, 1]
35[0, 1]
36[0, 1, 2, 3]
37[0, 1, 2, 3]
38[0, 2, 3]
39[2, 3]
40[2, 3]
41[2, 3]
42['a', 0, 1, 2, 3]
43[0, 'b', 2, 3]
44[0, 1, 'c']
45[0, 1, 2, 3, 'd']
46[0, 1, 2, 'e', 3]
47['f', 2, 3]
48[0, 1, 'g', 2, 3]
49['h']
50[0, 1, 2, 3]
51[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd']
52[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}]
53[function('New'), function('DictNew'), 'NewStart', 1, 2, 3, 'NewEnd', 'DictNewStart', 1, 2, 3, 'DictNewEnd', {'a': 'b'}, 'New']
54Vim(py3):E725:
55Vim(py3):E117:
56[0.0, 0.0]
Bram Moolenaaraf6abb92013-04-24 13:04:26 +020057KeyError
Bram Moolenaarc11073c2012-09-05 19:17:42 +020058TypeError
59TypeError
60ValueError
61TypeError
62TypeError
Bram Moolenaara9922d62013-05-30 13:01:18 +020063KeyError
64KeyError
Bram Moolenaar66b79852012-09-21 14:00:35 +020065d : locked:0;scope:0
66dl : locked:1;scope:0
67v: : locked:2;scope:1
68g: : locked:0;scope:2
69d:{'abc': 1}
70dl:{'def': 1}
71l : locked:0
72ll : locked:1
73l:[0]
74ll:[1]
Bram Moolenaardb913952012-06-29 12:54:53 +020075[0, 1, 2]
76['a', 'b']
77['c', 1]
78['d', ['e']]
Bram Moolenaardb913952012-06-29 12:54:53 +0200790.0
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020080"\0": Vim(let):E859:
81{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010082undefined_name: Vim(let):Trace
Bram Moolenaarb52f4c02013-05-21 18:19:38 +020083vim: Vim(let):E859:
Bram Moolenaar76d711c2013-02-13 14:17:08 +010084[1]
85[1, 10, 11, 10, 11, 10, 11, 10, 11, 10, 11, 10, 1]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +020086Abc
87bac
88def
89bar
Bram Moolenaara4720012013-05-15 16:27:37 +020090jkl
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +020091>>> paste
92 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +020093 p/wopts1! KeyError
94 inv: 2! KeyError
95 wopts1! KeyError
96 wopts2! KeyError
97 wopts3! KeyError
98 p/bopts1! KeyError
99 inv: 2! KeyError
100 bopts1! KeyError
101 bopts2! KeyError
102 bopts3! KeyError
103 G: 1
104 W: 1:1 2:1 3:1 4:1
105 B: 1:1 2:1 3:1 4:1
106 del wopts3! KeyError
107 del bopts3! KeyError
108 G: 1
109 W: 1:1 2:1 3:1 4:1
110 B: 1:1 2:1 3:1 4:1
111>>> previewheight
112 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200113 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200114 p/wopts1! KeyError
115 inv: 'a'! KeyError
116 wopts1! KeyError
117 wopts2! KeyError
118 wopts3! KeyError
119 p/bopts1! KeyError
120 inv: 'a'! KeyError
121 bopts1! KeyError
122 bopts2! KeyError
123 bopts3! KeyError
124 G: 5
125 W: 1:5 2:5 3:5 4:5
126 B: 1:5 2:5 3:5 4:5
127 del wopts3! KeyError
128 del bopts3! KeyError
129 G: 5
130 W: 1:5 2:5 3:5 4:5
131 B: 1:5 2:5 3:5 4:5
132>>> operatorfunc
133 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200134 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200135 p/wopts1! KeyError
136 inv: 2! KeyError
137 wopts1! KeyError
138 wopts2! KeyError
139 wopts3! KeyError
140 p/bopts1! KeyError
141 inv: 2! KeyError
142 bopts1! KeyError
143 bopts2! KeyError
144 bopts3! KeyError
145 G: 'A'
146 W: 1:'A' 2:'A' 3:'A' 4:'A'
147 B: 1:'A' 2:'A' 3:'A' 4:'A'
148 del wopts3! KeyError
149 del bopts3! KeyError
150 G: 'A'
151 W: 1:'A' 2:'A' 3:'A' 4:'A'
152 B: 1:'A' 2:'A' 3:'A' 4:'A'
153>>> number
154 p/gopts1! KeyError
155 inv: 0! KeyError
156 gopts1! KeyError
157 p/wopts1: False
158 p/bopts1! KeyError
159 inv: 0! KeyError
160 bopts1! KeyError
161 bopts2! KeyError
162 bopts3! KeyError
163 G: 0
164 W: 1:1 2:1 3:0 4:0
165 B: 1:1 2:1 3:0 4:0
166 del wopts3! ValueError
167 del bopts3! KeyError
168 G: 0
169 W: 1:1 2:1 3:0 4:0
170 B: 1:1 2:1 3:0 4:0
171>>> numberwidth
172 p/gopts1! KeyError
173 inv: -100! KeyError
174 gopts1! KeyError
175 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200176 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200177 p/bopts1! KeyError
178 inv: -100! KeyError
179 bopts1! KeyError
180 bopts2! KeyError
181 bopts3! KeyError
182 G: 8
183 W: 1:3 2:5 3:2 4:8
184 B: 1:3 2:5 3:2 4:8
185 del wopts3! ValueError
186 del bopts3! KeyError
187 G: 8
188 W: 1:3 2:5 3:2 4:8
189 B: 1:3 2:5 3:2 4:8
190>>> colorcolumn
191 p/gopts1! KeyError
192 inv: 'abc'! KeyError
193 gopts1! KeyError
194 p/wopts1: b''
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200195 inv: 'abc'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200196 p/bopts1! KeyError
197 inv: 'abc'! KeyError
198 bopts1! KeyError
199 bopts2! KeyError
200 bopts3! KeyError
201 G: ''
202 W: 1:'+2' 2:'+3' 3:'+1' 4:''
203 B: 1:'+2' 2:'+3' 3:'+1' 4:''
204 del wopts3! ValueError
205 del bopts3! KeyError
206 G: ''
207 W: 1:'+2' 2:'+3' 3:'+1' 4:''
208 B: 1:'+2' 2:'+3' 3:'+1' 4:''
209>>> statusline
210 p/gopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200211 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200212 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200213 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200214 p/bopts1! KeyError
215 inv: 0! KeyError
216 bopts1! KeyError
217 bopts2! KeyError
218 bopts3! KeyError
219 G: '1'
220 W: 1:'2' 2:'4' 3:'1' 4:'1'
221 B: 1:'2' 2:'4' 3:'1' 4:'1'
222 del bopts3! KeyError
223 G: '1'
224 W: 1:'2' 2:'1' 3:'1' 4:'1'
225 B: 1:'2' 2:'1' 3:'1' 4:'1'
226>>> autoindent
227 p/gopts1! KeyError
228 inv: 2! KeyError
229 gopts1! KeyError
230 p/wopts1! KeyError
231 inv: 2! KeyError
232 wopts1! KeyError
233 wopts2! KeyError
234 wopts3! KeyError
235 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200236 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200237 W: 1:0 2:1 3:0 4:1
238 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200239 del wopts3! KeyError
240 del bopts3! ValueError
241 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200242 W: 1:0 2:1 3:0 4:1
243 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200244>>> shiftwidth
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200245 p/gopts1! KeyError
246 inv: 3! KeyError
247 gopts1! KeyError
248 p/wopts1! KeyError
249 inv: 3! KeyError
250 wopts1! KeyError
251 wopts2! KeyError
252 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200253 p/bopts1: 8
254 G: 8
255 W: 1:0 2:2 3:8 4:1
256 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200257 del wopts3! KeyError
258 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200259 G: 8
260 W: 1:0 2:2 3:8 4:1
261 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200262>>> omnifunc
263 p/gopts1! KeyError
264 inv: 1! KeyError
265 gopts1! KeyError
266 p/wopts1! KeyError
267 inv: 1! KeyError
268 wopts1! KeyError
269 wopts2! KeyError
270 wopts3! KeyError
271 p/bopts1: b''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200272 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200273 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200274 W: 1:'A' 2:'B' 3:'' 4:'C'
275 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200276 del wopts3! KeyError
277 del bopts3! ValueError
278 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200279 W: 1:'A' 2:'B' 3:'' 4:'C'
280 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200281>>> preserveindent
282 p/gopts1! KeyError
283 inv: 2! KeyError
284 gopts1! KeyError
285 p/wopts1! KeyError
286 inv: 2! KeyError
287 wopts1! KeyError
288 wopts2! KeyError
289 wopts3! KeyError
290 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200291 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200292 W: 1:0 2:1 3:0 4:1
293 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200294 del wopts3! KeyError
295 del bopts3! ValueError
296 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200297 W: 1:0 2:1 3:0 4:1
298 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200299>>> path
300 p/gopts1: b'.,/usr/include,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200301 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200302 p/wopts1! KeyError
303 inv: 0! KeyError
304 wopts1! KeyError
305 wopts2! KeyError
306 wopts3! KeyError
307 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200308 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200309 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200310 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
311 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200312 del wopts3! KeyError
313 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200314 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
315 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200316First line
317First line
318def
319First line
320Second line
321Third line
322(7, 2)
323<buffer test87.in><buffer >
324baz
325bar
326Second line
327Third line
328foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003291:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003301:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200331testdir/foo
3325:BufFilePre:5
3335:BufFilePost:5
334testdir/bar
3351:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003361:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200337testdir/test87.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200338valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200339i:<buffer test87.in>
340i2:<buffer test87.in>
341i:<buffer a>
342i3:<buffer test87.in>
3431:<buffer test87.in>=<buffer test87.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003448:<buffer a>=<buffer a>
3459:<buffer b>=<buffer b>
34610:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003474
348i4:<buffer test87.in>
349i4:<buffer test87.in>
350StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200351Number of tabs: 4
352Current tab pages:
353 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
354 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200355 <window object (unknown)>(1): displays buffer <buffer test87.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200356 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
357 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200358 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200359 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
360 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200361 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
362 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200363 <tabpage 3>(4): 4 windows, current is <window 0>
364 Windows:
365 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
366 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
367 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
368 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
369Number of windows in current tab page: 4
370Current tab page: <tabpage 3>
371Current window: <window 0>: <window 0> is <window 0>
372Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
373ValueError at assigning foreign tab window
374Type error at assigning None to vim.current.window
375Type error at assigning None to vim.current.tabpage
376Type error at assigning None to vim.current.buffer
377Current tab page: <tabpage 2>
378Current window: <window 0>
379Current buffer: <buffer test87.in>
380Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200381w.valid: [True, False]
382t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200383vim.vars:Dictionary:True
384vim.options:Options:True
385vim.bindeval("{}"):Dictionary:True
386vim.bindeval("[]"):List:True
387vim.bindeval("function('tr')"):Function:True
388vim.current.buffer:Buffer:True
389vim.current.range:Range:True
390vim.current.window:Window:True
391vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200392current:__dir__,buffer,line,range,tabpage,window
393buffer:__dir__,append,mark,name,number,options,range,valid,vars
394window:__dir__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
395tabpage:__dir__,number,valid,vars,window,windows
396range:__dir__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200397dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200398list:__dir__,extend,locked
399function:__call__,__dir__,softspace
400output:__dir__,flush,softspace,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200401{}
402{'a': 1}
403{'a': 1}
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200404[]
405['a', 'b', 'c']
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200406'
407abcdef
408line :
409abcdef
410abc
411line :
412abc'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200413['a', 'dup_a']
Bram Moolenaar78cddbe2013-05-30 13:05:58 +0200414['a', 'a']
415['a', 'b', 'c']
Bram Moolenaara7b64ce2013-05-21 20:40:40 +0200416(<class 'vim.error'>, error('abc',))
417(<class 'vim.error'>, error('def',))
418(<class 'vim.error'>, error('ghi',))
419(<class 'vim.error'>, error('Vim(echoerr):jkl',))
420(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
421(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))