Wednesday, February 20, 2013

Always restore buffer list from .viminfo file

Hello,

is there any chance to recover all opened buffers in vim from the
~/.viminfo file somehow?
I understood that vim trashes the buffers list when vim is started with
a specific file to edit. But as I use vim in mutt as my default editor
as well, I always loose my buffers because mutt opens it like this:

`vim /tmp/mutt-archbookPro-1000-895-3021467551525290154`

So it does not help when I try to use only one vim instance running on
my workstation to keep all buffers around.

I read something about v:oldfiles, but I have no clue how this file
might be of any help, because I just have a list of all old files in a
new buffer. I am not able to restore the buffers from it.

Best regards,
Arvid

--
[ Arvid Warnecke ][ arvid (at) nostalgix (dot) org ]
[ IRC/OPN: "madhatter" ][ http://www.nostalgix.org ]
---[ ThreePiO was right: Let the Wookiee win. ]---

No comments: