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

How to always autosave to default session instead of the current one? #79

Closed
cirosantilli opened this issue Dec 3, 2013 · 1 comment · Fixed by #81
Closed

How to always autosave to default session instead of the current one? #79

cirosantilli opened this issue Dec 3, 2013 · 1 comment · Fixed by #81

Comments

@cirosantilli
Copy link
Contributor

I would like the default session to always contain the last buffers I was in, even if I have already saved another session before exiting.

A similar effect is possible with default_to_last 1 + autosave 'yes' + autoload 'yes', but the problem is that this saves on the current session, not on the default one, and when I close vim I often have many buffers which are only used for the moment, and I don't want them to be part to my last manually saved session which I will use many times.

I have tried:

let g:session_autosave = 'no'
let g:session_autoload = 'yes'
autocmd VimLeave * SaveSession default

but for some reason it generates a lock on the default session, and load fails at the next startup.

@xolox
Copy link
Owner

xolox commented Jul 8, 2015

I just merged your pull request so this issue should now be resolved. Happy Vimming!

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

Successfully merging a pull request may close this issue.

2 participants