blob: 200af0489fa4e9aeebd938c565031464e6ac930c [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['-1', '0', '1', 'b']
8['asd', -1L, <vim.dictionary object at >, <vim.list object at >]
9[('-1', <vim.dictionary object at >), ('0', -1L), ('1', 'asd'), ('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['0']
26{'0': -1}
27('', -1L)
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(python):E725:
55Vim(python):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 Moolenaarc11073c2012-09-05 19:17:42 +020080"\0": Vim(let):E859:
81{"\0": 1}: Vim(let):E859:
Bram Moolenaar995a8cd2013-02-20 16:54:27 +010082undefined_name: Vim(let):Trace
Bram Moolenaarc11073c2012-09-05 19:17:42 +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 Moolenaar24b11fb2013-04-05 19:32:36 +020086[0, 1, 2, 3]
87[2, 3, 4, 5]
88[0, 1]
89[4, 5]
90[2, 3]
91[]
92[2, 3]
93[]
94[0, 1, 2, 3, 4, 5]
95[0, 1, 2, 3, 4, 5]
96[0, 1, 2, 3, 4, 5]
Bram Moolenaar230bb3f2013-04-24 14:07:45 +020097Abc
98bac
99def
100bar
Bram Moolenaara4720012013-05-15 16:27:37 +0200101jkl
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200102>>> paste
103 p/gopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200104 p/wopts1! KeyError
105 inv: 2! KeyError
106 wopts1! KeyError
107 wopts2! KeyError
108 wopts3! KeyError
109 p/bopts1! KeyError
110 inv: 2! KeyError
111 bopts1! KeyError
112 bopts2! KeyError
113 bopts3! KeyError
114 G: 1
115 W: 1:1 2:1 3:1 4:1
116 B: 1:1 2:1 3:1 4:1
117 del wopts3! KeyError
118 del bopts3! KeyError
119 G: 1
120 W: 1:1 2:1 3:1 4:1
121 B: 1:1 2:1 3:1 4:1
122>>> previewheight
123 p/gopts1: 12
Bram Moolenaar8661b172013-05-15 15:44:28 +0200124 inv: 'a'! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200125 p/wopts1! KeyError
126 inv: 'a'! KeyError
127 wopts1! KeyError
128 wopts2! KeyError
129 wopts3! KeyError
130 p/bopts1! KeyError
131 inv: 'a'! KeyError
132 bopts1! KeyError
133 bopts2! KeyError
134 bopts3! KeyError
135 G: 5
136 W: 1:5 2:5 3:5 4:5
137 B: 1:5 2:5 3:5 4:5
138 del wopts3! KeyError
139 del bopts3! KeyError
140 G: 5
141 W: 1:5 2:5 3:5 4:5
142 B: 1:5 2:5 3:5 4:5
143>>> operatorfunc
144 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200145 inv: 2! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200146 p/wopts1! KeyError
147 inv: 2! KeyError
148 wopts1! KeyError
149 wopts2! KeyError
150 wopts3! KeyError
151 p/bopts1! KeyError
152 inv: 2! KeyError
153 bopts1! KeyError
154 bopts2! KeyError
155 bopts3! KeyError
156 G: 'A'
157 W: 1:'A' 2:'A' 3:'A' 4:'A'
158 B: 1:'A' 2:'A' 3:'A' 4:'A'
159 del wopts3! KeyError
160 del bopts3! KeyError
161 G: 'A'
162 W: 1:'A' 2:'A' 3:'A' 4:'A'
163 B: 1:'A' 2:'A' 3:'A' 4:'A'
164>>> number
165 p/gopts1! KeyError
166 inv: 0! KeyError
167 gopts1! KeyError
168 p/wopts1: False
169 p/bopts1! KeyError
170 inv: 0! KeyError
171 bopts1! KeyError
172 bopts2! KeyError
173 bopts3! KeyError
174 G: 0
175 W: 1:1 2:1 3:0 4:0
176 B: 1:1 2:1 3:0 4:0
177 del wopts3! ValueError
178 del bopts3! KeyError
179 G: 0
180 W: 1:1 2:1 3:0 4:0
181 B: 1:1 2:1 3:0 4:0
182>>> numberwidth
183 p/gopts1! KeyError
184 inv: -100! KeyError
185 gopts1! KeyError
186 p/wopts1: 8
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200187 inv: -100! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200188 p/bopts1! KeyError
189 inv: -100! KeyError
190 bopts1! KeyError
191 bopts2! KeyError
192 bopts3! KeyError
193 G: 8
194 W: 1:3 2:5 3:2 4:8
195 B: 1:3 2:5 3:2 4:8
196 del wopts3! ValueError
197 del bopts3! KeyError
198 G: 8
199 W: 1:3 2:5 3:2 4:8
200 B: 1:3 2:5 3:2 4:8
201>>> colorcolumn
202 p/gopts1! KeyError
203 inv: 'abc'! KeyError
204 gopts1! KeyError
205 p/wopts1: ''
Bram Moolenaarc96ebe72013-05-21 22:38:18 +0200206 inv: 'abc'! error
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200207 p/bopts1! KeyError
208 inv: 'abc'! KeyError
209 bopts1! KeyError
210 bopts2! KeyError
211 bopts3! KeyError
212 G: ''
213 W: 1:'+2' 2:'+3' 3:'+1' 4:''
214 B: 1:'+2' 2:'+3' 3:'+1' 4:''
215 del wopts3! ValueError
216 del bopts3! KeyError
217 G: ''
218 W: 1:'+2' 2:'+3' 3:'+1' 4:''
219 B: 1:'+2' 2:'+3' 3:'+1' 4:''
220>>> statusline
221 p/gopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200222 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200223 p/wopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200224 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200225 p/bopts1! KeyError
226 inv: 0! KeyError
227 bopts1! KeyError
228 bopts2! KeyError
229 bopts3! KeyError
230 G: '1'
231 W: 1:'2' 2:'4' 3:'1' 4:'1'
232 B: 1:'2' 2:'4' 3:'1' 4:'1'
233 del bopts3! KeyError
234 G: '1'
235 W: 1:'2' 2:'1' 3:'1' 4:'1'
236 B: 1:'2' 2:'1' 3:'1' 4:'1'
237>>> autoindent
238 p/gopts1! KeyError
239 inv: 2! KeyError
240 gopts1! KeyError
241 p/wopts1! KeyError
242 inv: 2! KeyError
243 wopts1! KeyError
244 wopts2! KeyError
245 wopts3! KeyError
246 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200247 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200248 W: 1:0 2:1 3:0 4:1
249 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200250 del wopts3! KeyError
251 del bopts3! ValueError
252 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200253 W: 1:0 2:1 3:0 4:1
254 B: 1:0 2:1 3:0 4:1
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200255>>> shiftwidth
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200256 p/gopts1! KeyError
257 inv: 3! KeyError
258 gopts1! KeyError
259 p/wopts1! KeyError
260 inv: 3! KeyError
261 wopts1! KeyError
262 wopts2! KeyError
263 wopts3! KeyError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200264 p/bopts1: 8
265 G: 8
266 W: 1:0 2:2 3:8 4:1
267 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200268 del wopts3! KeyError
269 del bopts3! ValueError
Bram Moolenaar55b8ad32013-05-17 13:38:04 +0200270 G: 8
271 W: 1:0 2:2 3:8 4:1
272 B: 1:0 2:2 3:8 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200273>>> omnifunc
274 p/gopts1! KeyError
275 inv: 1! KeyError
276 gopts1! KeyError
277 p/wopts1! KeyError
278 inv: 1! KeyError
279 wopts1! KeyError
280 wopts2! KeyError
281 wopts3! KeyError
282 p/bopts1: ''
Bram Moolenaar8661b172013-05-15 15:44:28 +0200283 inv: 1! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200284 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200285 W: 1:'A' 2:'B' 3:'' 4:'C'
286 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200287 del wopts3! KeyError
288 del bopts3! ValueError
289 G: ''
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200290 W: 1:'A' 2:'B' 3:'' 4:'C'
291 B: 1:'A' 2:'B' 3:'' 4:'C'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200292>>> preserveindent
293 p/gopts1! KeyError
294 inv: 2! KeyError
295 gopts1! KeyError
296 p/wopts1! KeyError
297 inv: 2! KeyError
298 wopts1! KeyError
299 wopts2! KeyError
300 wopts3! KeyError
301 p/bopts1: False
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200302 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200303 W: 1:0 2:1 3:0 4:1
304 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200305 del wopts3! KeyError
306 del bopts3! ValueError
307 G: 0
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200308 W: 1:0 2:1 3:0 4:1
309 B: 1:0 2:1 3:0 4:1
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200310>>> path
311 p/gopts1: '.,/usr/include,,'
Bram Moolenaar8661b172013-05-15 15:44:28 +0200312 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200313 p/wopts1! KeyError
314 inv: 0! KeyError
315 wopts1! KeyError
316 wopts2! KeyError
317 wopts3! KeyError
318 p/bopts1: None
Bram Moolenaar8661b172013-05-15 15:44:28 +0200319 inv: 0! TypeError
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200320 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200321 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
322 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.'
Bram Moolenaar84e0f6c2013-05-06 03:52:55 +0200323 del wopts3! KeyError
324 G: '.,,'
Bram Moolenaardfa38d42013-05-15 13:38:47 +0200325 W: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
326 B: 1:'.,,' 2:',,' 3:'.,,' 4:'.,,'
Bram Moolenaarbd80f352013-05-12 21:16:23 +0200327First line
328First line
329def
330First line
331Second line
332Third line
333(7, 2)
334<buffer test86.in><buffer >
335baz
336bar
337Second line
338Third line
339foo
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003401:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003411:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200342testdir/foo
3435:BufFilePre:5
3445:BufFilePost:5
345testdir/bar
3461:BufFilePre:1
Bram Moolenaar7e283842013-05-30 11:43:15 +02003471:BufFilePost:1
Bram Moolenaare9ba5162013-05-29 22:02:22 +0200348testdir/test86.in
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200349valid: b:False, cb:True
Bram Moolenaarb6c589a2013-05-15 14:39:52 +0200350i:<buffer test86.in>
351i2:<buffer test86.in>
352i:<buffer a>
353i3:<buffer test86.in>
3541:<buffer test86.in>=<buffer test86.in>
Bram Moolenaare9ba5162013-05-29 22:02:22 +02003558:<buffer a>=<buffer a>
3569:<buffer b>=<buffer b>
35710:<buffer c>=<buffer c>
Bram Moolenaarb6c589a2013-05-15 14:39:52 +02003584
359i4:<buffer test86.in>
360i4:<buffer test86.in>
361StopIteration
Bram Moolenaara4720012013-05-15 16:27:37 +0200362Number of tabs: 4
363Current tab pages:
364 <tabpage 0>(1): 1 windows, current is <window object (unknown)>
365 Windows:
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200366 <window object (unknown)>(1): displays buffer <buffer test86.in>; cursor is at (37, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200367 <tabpage 1>(2): 1 windows, current is <window object (unknown)>
368 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200369 <window object (unknown)>(1): displays buffer <buffer 0>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200370 <tabpage 2>(3): 2 windows, current is <window object (unknown)>
371 Windows:
Bram Moolenaarcabf80f2013-05-17 16:18:33 +0200372 <window object (unknown)>(1): displays buffer <buffer a.1>; cursor is at (1, 0)
373 <window object (unknown)>(2): displays buffer <buffer 1>; cursor is at (1, 0)
Bram Moolenaara4720012013-05-15 16:27:37 +0200374 <tabpage 3>(4): 4 windows, current is <window 0>
375 Windows:
376 <window 0>(1): displays buffer <buffer c.2>; cursor is at (1, 0)
377 <window 1>(2): displays buffer <buffer b.2>; cursor is at (1, 0)
378 <window 2>(3): displays buffer <buffer a.2>; cursor is at (1, 0)
379 <window 3>(4): displays buffer <buffer 2>; cursor is at (1, 0)
380Number of windows in current tab page: 4
381Current tab page: <tabpage 3>
382Current window: <window 0>: <window 0> is <window 0>
383Current buffer: <buffer c.2>: <buffer c.2> is <buffer c.2> is <buffer c.2>
384ValueError at assigning foreign tab window
385Type error at assigning None to vim.current.window
386Type error at assigning None to vim.current.tabpage
387Type error at assigning None to vim.current.buffer
388Current tab page: <tabpage 2>
389Current window: <window 0>
390Current buffer: <buffer test86.in>
391Current line: 'Type error at assigning None to vim.current.buffer'
Bram Moolenaar9e822c02013-05-29 22:15:30 +0200392w.valid: [True, False]
393t.valid: [True, False, True, False]
Bram Moolenaarcac867a2013-05-21 19:50:34 +0200394vim.vars:Dictionary:True
395vim.options:Options:True
396vim.bindeval("{}"):Dictionary:True
397vim.bindeval("[]"):List:True
398vim.bindeval("function('tr')"):Function:True
399vim.current.buffer:Buffer:True
400vim.current.range:Range:True
401vim.current.window:Window:True
402vim.current.tabpage:TabPage:True
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200403current:__dir__,__members__,buffer,line,range,tabpage,window
404buffer:__dir__,__members__,append,mark,name,number,options,range,valid,vars
405window:__dir__,__members__,buffer,col,cursor,height,number,options,row,tabpage,valid,vars
406tabpage:__dir__,__members__,number,valid,vars,window,windows
407range:__dir__,__members__,append,end,start
Bram Moolenaara9922d62013-05-30 13:01:18 +0200408dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
Bram Moolenaardd8aca62013-05-29 22:36:10 +0200409list:__dir__,__members__,extend,locked
410function:__call__,__dir__,__members__,softspace
411output:__dir__,__members__,flush,softspace,write,writelines
Bram Moolenaara9922d62013-05-30 13:01:18 +0200412{}
413{'a': 1}
414{'a': 1}
Bram Moolenaar01a7a722013-05-30 12:26:58 +0200415'
416abcdef
417line :
418abcdef
419abc
420line :
421abc'
Bram Moolenaara9922d62013-05-30 13:01:18 +0200422['a', 'dup_a']
Bram Moolenaara7b64ce2013-05-21 20:40:40 +0200423(<class 'vim.error'>, error('abc',))
424(<class 'vim.error'>, error('def',))
425(<class 'vim.error'>, error('ghi',))
426(<class 'vim.error'>, error('Vim(echoerr):jkl',))
427(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))
428(<class 'vim.error'>, error('Vim:E492: Not an editor command: xxx_non_existent_command_xxx',))