mattboehm / vim-accordion

A vim window manager for people who love splits
101 stars 3 forks source link

Accordion doesn't work after reloading sessions #28

Open mattboehm opened 10 years ago

mattboehm commented 10 years ago

When you make a session with :mksession, it does not save the t: or g: variables used by accordion to track the size. When you reload a session that had accordion running, extra windows will still be shrunk, but moving windows does not adjust the viewport. The only way to currently fix this is to re-call :Accordion 3 or call AccordionClear.

It'd be nice if the reloaded session still had accordion running, but it may be impossible to do this, depending on the limits of sessionoptions. vim-startify has better session handling, so perhaps it's best to just integrate with that.