I updated this morning to vim-9.2.506-2 (which uses gtk4) on Fedora 44 under XFCE (X11). I noticed that my .vimrc file wasn't having the normal effect - my window was the wrong size and had the wrong font. When I tried to resize the window the text disappeared and I had to use ^L to refresh the screen.
I reverted to an earlier release (vim-9.2.506-1) which uses gtk3 and everything was back to normal.
I then tried building local copies based on the https://github.com/vim/vim.git code. When I configured using:
./configure --with-x --enable-gui=gtk3
the build worked fine. But when I tried using:
./configure --with-x --enable-gui=gtk4
then the build had the same problem as what I saw with the official Fedora build. I created a Fedora bug:
https://bugzilla.redhat.com/show_bug.cgi
The gtk4 version should work as well as the gtk3 version.
vim-9.2.506-2
Fedora 44 XFCE X11
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
What exactly is in your vimrc that does not work?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
The "set guifont" line is not working, and neither is the "autocmd GUIEnter * set lines=40 columns=80" line. I attached the complete file for reference. This has been working perfectly for a long time with the gtk3 gui. It is just the Fedora changeover of vim to use gtk4 that is causing problems. I don't know if there is something wrong in their gtk4 library or in vim itself. Right now, I just know that the combination isn't working.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
This seems to have been fixed as of #20269
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
This does not fix the issue for me. I've attached two screenshots from version v9.2.0526, which includes the gtk4 "cannot resize" patch. The smaller window is what I get when building for gtk4 while the larger window is what I get when building for gtk3.
Screenshot_20260524_102719.png (view on web) Screenshot_20260524_102818.png (view on web)—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
For some reason, I cannot reopen this issue. @chrisbra - please reopen it for me, or please give me whatever level of access is needed for me to reopen my own issues.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Hi @stevefalco, opened #20317 which should fix this. Could you rebuild from that branch and confirm?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
I cannot reproduce the issue. For me with a vimrc like this:
set cpo
au GuiEnter * set lines=40 columns=20
and vim -g -u /tmp/vimrc opens a gui with the expected size. Can you reproduce with a minimum vimrc file?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
I tried building from mattn branch fix-gtk4-shellsize-redraw. That doesn't fix it.
I tried moving my ~/.vim directory out of the way, and replaced my .vimrc file with the two lines given by chrisbra. I launched via: /usr/local/bin/gvim -u $HOME/.vimrc foo to be sure I was getting the new .vimrc file.
The cpoptions shown are cpoptions=aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZz$!%*-+<>;
I get a blank window that appears different than 40x20. However, :set lines reports 20 and :set columns reports 88, and as soon as I type the first : the window contents fill in. Here is the initial window before I type anything:
Once I type the :set columns I see:
And for completeness, here is the .vimrc file:
$ cat .vimrc
set cpo
au GuiEnter * set lines=40 columns=20
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
I just noticed something else bizarre. I went back to my previous .vimrc and stretched the window rather tall. I then selected Help->Version and tried to highlight the version text using the left mouse button. I got a very strange display:
Screenshot_20260524_115806.png (view on web)That only seems to happen when highlighting the version output. If the window shows the file I am editing then the highlighting works properly:
Screenshot_20260524_120128.png (view on web)—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Another visual problem is that I have no scrollbar when using gtk4. Normally, there would be a scrollbar on the right side of the window. Space appears to be allocated as can be seen in this screenshot, but there is no "thumb" or background for the scrollbar:
Screenshot_20260524_145054.png (view on web)—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()