TaDaa / vimade

An eye friendly plugin that fades your inactive buffers and preserves your syntax highlighting!
MIT License
486 stars 8 forks source link

When I use vimade, Maximizing splited window(`<c-w>|`) failed. #49

Closed Delayless closed 3 years ago

Delayless commented 3 years ago

CTRL-W | Set current window width to N (default: widest possible). I use the shortcut to maximize the current windows in vim's multiple windows. When I use vimade, maximizing the vertically split window fails. Normally, the width of all other windows should be 0. But there's always a window that isn't. I've tried:

  1. when the same file split different windows, maximizing windows is normal.
  2. set colbufsize, rowbufsize=0, it's useless.
  3. It's normal when split horizontally.
TaDaa commented 3 years ago

sorry for the post 2 month response -- this seems like some kind odd bug. I think the hidden jumps to fade other windows/buffers are triggering this expansion... Is there a similar hide mapping used for vertical space?

I think it makes sense to change the width / height invalidation to only recompute when the area is increased which should fix this

Delayless commented 3 years ago

Sure, press <C-w>_ to maximize windows for vertical space. The following code is used to set the windows size from my vimrc.

" use 'M' to maximize and 'm' to balance windows.
nnoremap <LEADER>wM <C-W>\| <C-W>_
nnoremap <LEADER>wm <C-W>=
Delayless commented 3 years ago

I think it's fixed after pulling the latest commit ec3d78050a562232c1614a701fe1a868ba4109e9. Thank you. It's awesome.