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

Reset Session? #10

Open
imajes opened this issue Nov 30, 2011 · 2 comments
Open

Reset Session? #10

imajes opened this issue Nov 30, 2011 · 2 comments

Comments

@imajes
Copy link

imajes commented Nov 30, 2011

Right now i have a session that's over 800 lines... I've been working on this client project awhile, and that's the output of many many days of opening and closing the same session.

in fact, scarily:

% grep -c badd redstamp.vim 
829

I don't really want this many buffers open. :(

i've resorted to deleting the session, and starting again -- but i wonder, could you consider -- if there's any way? to be able to rebuild/reset the session with whatever is currently in view? I don't need hidden or unloaded buffers, for example, nor do i want to have settings that i've set, unset, etc.

or another best case way of doing it?

@xolox
Copy link
Owner

xolox commented Nov 30, 2011

Hi James,

I think the only thing that really stacks up when you work in the same session for a few months (which I do as well) is hidden buffers. Consider adding the following line to your vimrc script:

set sessionoptions-=buffers

With this setting the session plug-in will no longer persist hidden buffers; it will only remember buffers that are visible in a tab page / split window. I'll add this hint to the documentation so it's a bit more explicit how it works.

@imajes
Copy link
Author

imajes commented Jul 2, 2012

hey. just saw this - thanks for the tip; i think this will help, but it'd be also awesome to have a tool that cleans up a session to just whatever is happening right now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants