TaDaa / vimade

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

Does not redraw and respect winwidth after executed command :source ~/.vimrc and :VimadeRedraw #59

Closed hoango7604 closed 3 years ago

hoango7604 commented 3 years ago

Hello @TaDaa, I am stucking with this issue for a while and haven't found a proper solution. Whenever I ran command :source ~/.vimrc, all unfocused windows will no longer be faded any more, and I have to call :VimadeRedraw to trigger fading by hand.

issue-redraw

So for a work around, I remap ss to :source ~/.vimrc:VimadeRedraw. Things even get worse when I use vim-maximizer. When the window is being maximized and command :VimadeRedraw is executed, the minimized windows "stretch" a little although I expected it to keep the same.

issue-maximizer

Really hope you could help me out. Thank you.

TaDaa commented 3 years ago

I believe this should fix source ~/.vimrc

On the resizing..it seems like when vimade switches windows behind the scenes, vertical resize is triggering due to winwidth settings. I've added a really hacky workaround and it seems to be better, but let me know if you see any issues.

hoango7604 commented 3 years ago

Sorry for being inactive for a long time, since I have read your comment but forgot to response. Your workaround worked perfectly without any modification. Thank you in advance!