mattboehm / vim-accordion

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

Executing 'Accordion 1' does nothing in some cases #32

Closed svermeulen closed 10 years ago

svermeulen commented 10 years ago

Uses vanilla vim I can reproduce this issue by doing the following: <c-w>v<c-w>v<c-w>v (create three splits) :AccordionAll 2 (correctly reduces it down to two) :Accordion 1 (does nothing)

Executing Accordion 1` twice does fix it however

svermeulen commented 10 years ago

Oh, or calling AccordionAll 1 instead of just Accordion 1 also fixes it.

mattboehm commented 10 years ago

This is definitiely a bug as the local setting should take precedence over the global setting. I'll look into it soon.

mattboehm commented 10 years ago

Sorry for the delay; I ended up implementing this in a feature branch that adds support for horizontal splits as I didn't want to rewrite it once I merged that in. I wanted to test that a bit more extensively before pushing it out. Please let me know if you notice this or any other issues after upgrading to version 0.6.0.