Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving sessions #1

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

Saving sessions #1

davejacobs opened this issue Feb 15, 2013 · 7 comments

Comments

@davejacobs
Copy link

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

@chrisbra
Copy link
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
Copy link
Author

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
Copy link
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
Copy link
Owner

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

@davejacobs
Copy link
Author

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
Copy link
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
Copy link
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 as completed Mar 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants