jeetsukumaran / vim-buffergator

Vim plugin to list, select and switch between buffers.
498 stars 49 forks source link

in gvim, buffergator "restores" window from maximized to normal #75

Open christianfriedl opened 8 years ago

christianfriedl commented 8 years ago

This is just a tiny one, but still slightly annoying...

On Windows 10 using gVim, opening buffergator will also terminate the "maximized" mode of the window, bringing it back to... umm "normal", non-maximized size.

Frydac commented 7 years ago

I also have this issue on ubuntu 16.04.

An example of how it can be pretty annoying: I have a main monitor with 1440p resolution, and a second with 1080p resolution. I have my gvim on my main monitor maximized, then I use buffergator, which makes the size conform with my 1440p monitor (non-maximized) Some time later, for whatever reason, I move my gvim window to my second monitor, using my mouse I drag it to the top of my second monitor to put it there maximized. Then I use buffergator again -> now it will resize to a size that is too big for my current monitor, forcing me to resize the window by hand. (though testing some more atm, it doesn't always do this.. not sure what's different it)

I also use Nerdtree, that afaik does something similar without having to go out of the maximized state of the window.

Other than that, been using this plugin since today, and it greatly enhanced my vim experience.

ayevee commented 7 years ago

Try setting g:buffergator_autoexpand_on_split to 0 in vimrc: let g:buffergator_autoexpand_on_split = 0 From help file:

g:buffergator_autoexpand_on_split~ Default: 1 If true and running in GUI mode, then the application screen will be expanded to accommodate the Buffergator window.

ntpeters commented 6 years ago

Setting let g:buffergator_autoexpand_on_split = 0 fixed this for me in gVim on Win 10!