Saving sessions #1

Closed
davejacobs opened this Issue Feb 15, 2013 · 7 comments

Projects

None yet

2 participants

@davejacobs

This is great. How can I save a session to see later?

@chrisbra
Owner

Hi David!

On Fr, 15 Feb 2013, David Jacobs wrote:

This is great. How can I save a session to see later?

If you don't expect the tags to be saved between Vim sessions this only
works for the default tag. But only, if you have enabled persistent undo
files (e.g. you need a Vim 7.3 compiled with +persistent_undo, see the
:version info).

I hope this answers your question.

regards,

Christian

Wenn auf Erden die Liebe herrschte, wären alle Gesetze entbehrlich.
-- Aristoteles, 384-322 v. Chr.

@davejacobs

Hi Christian, thanks for the reply. I'm wondering if there's a way to save Replay/undo sessions to a specific file and recall them later with replay? I know about persistent undo, but that history will eventually go away.

@chrisbra
Owner

Hi David!

On Sa, 16 Feb 2013, David Jacobs wrote:

Hi Christian, thanks for the reply. I'm wondering if there's a way to save Replay/undo sessions to a specific file and recall them later with replay? I know about persistent undo, but that history will eventually go away.

Indeed, but how could we save those sessions?

regards,

Christian

Ich habe etliche mal bemerkt, daß ich Kopf-Weh bekam, wenn ich mich
lange in einem Hohl-Spiegel betrachtete.
-- Georg Christoph Lichtenberg

@chrisbra
Owner

I don't know script, but do you think this could work to capture and replay the session?

@davejacobs

I know that there is a way to save a Vim session later: http://stackoverflow.com/questions/1642611/how-to-save-a-session-in-vim

I wonder if there's a similar way to store an arbitrary register's contents to a file? If so, maybe you could transfer the undo tree to a file?

@chrisbra
Owner

Hi David!

On Mo, 18 Feb 2013, David Jacobs wrote:

I know that there is a way to save a Vim session later: http://stackoverflow.com/questions/1642611/how-to-save-a-session-in-vim

I wonder if there's a similar way to store an arbitrary register's contents to a file? If so, maybe you could transfer the undo tree to a file?

That is different. I think, sessions don't even care about undo-states,
which this plugin is about.

I think, the only way to make it work, is trying to record a vim-replay
using script and let it later be replayed.

regards,

Christian

Intelligenz ist die Fähigkeit, seine Umgebung zu akzeptieren.
-- William Faulkner

@chrisbra
Owner

Hi David!

On Mo, 18 Feb 2013, David Jacobs wrote:

I know that there is a way to save a Vim session later: http://stackoverflow.com/questions/1642611/how-to-save-a-session-in-vim

I wonder if there's a similar way to store an arbitrary register's contents to a file? If so, maybe you could transfer the undo tree to a file?

I have just integrated a screencapturing feature into the Replay plugin.
You need ffmpeg/avconv installed and it is currently only working in a
Unix environment with vim running on a X11 server. You need to set the
variable g:replay_record='avconv' to enable this feature.

See also the help :h Replay-record. Please test and tell me, if this
works for you.

regards,

Christian

Schauspieler sind doch nichts anderes als professionelle Schwindler.
-- Antonio Banderas

@chrisbra chrisbra closed this Mar 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment