-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Width becomes wrong from fullscreen mode in linux #43
Comments
Thanks for the report. I currently don't have access to a linux desktop, I will check when I get a chance. (From what I can tell it's not reproducible on MacVim.) |
I'm not surprised if it is not reproducible on MacVim, which even allows to set fullscreen mode from inside vim. In any case, let me know if there is anything I can do to help. |
Which distro are you running? |
I'm on Arch linux and I use xfce4.
|
I managed to set up an Arch VM with xfce4, but I couldn't reproduce the problem. (However, I ran into a different problem where "height" instead of width shrinks by a few lines. But it seemed like a bug of GVim itself, as it was easily reproducible with Could you try it without any other plugins and settings? gvim -Nu <(echo 'set rtp+=~/.vim/bundle/goyo.vim') |
Ah, I'm very sorry, I should of course have tested a minimal example first. I should at the very least have tested the example I described initially! My problem is due to the use of a different plugin |
Ok, so I managed to find a simple example that fails without using external plugins. Personally I use the function! s:goyo_enter()
set guifont=<selected font> 11
endfunction |
What happens when you add
Goyo re-adjusts the sizes of the windows on VimResized event which should be invoked on |
I recently updated README page to encourage the use of |
Yes, with |
I don't know how exactly does it fix the problem, but I saw it on junegunn/goyo.vim#43 and somehow it fixes my problem too :)
If I open
gvim
, go to fullscreen mode, issue:Goyo
, then the window with becomes much less than the default 80. If I instead issue:Goyo
before I go to fullscreen mode, then it works as expected.My
vimrc
settings are:Note that the current workaround works (although it should not be necessary):
The text was updated successfully, but these errors were encountered: