Tuesday, December 10, 2013

Re: Does viminfo store nested lists?

Have you tried cyclic linked lists/ dictionaries like these samples ?

fun! CyclicDictionary(count)
let start = {}
let prev = start
for i in range(1, a:count)
let new_ = {'prev': prev}
endfor
let start.prev = new_

return start
endf


fun! CyclicList(count)
let lists = map(range(0,a:count-1), '[]')

for i in range(0, a:count-1)
call add(lists[i], lists[(i+1) % a:count])
call add(lists[i], lists[(i-1+a:count) % a:count])
endfor
return lists[0]
endf

let dict = CyclicDictionary(100000)
let list = CyclicList(100000)

if dict and list are both read back correctly neither size nor cycles
seem to be a problem ..

But even :echo string(list)
fails => "nested too deep for displaying"

Marc Weber

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: