On Mon, 23 Jul 2012, Ney wrote:
> Hi, i'm using Gvim and Windows 7(yes i know).
>
> When i put Gvim on Fullscreen, in the right side and bottom i see an
> empty space(image attached). There are any solution for this?
You can observe the same issue under Linux with the GTK2 GUI. The
problem is that Gvim doesn't set the background color for all of its
widgets. So, when it enters fullscreen mode, you get the default
coloration for the background of the outermost widget. Using `parasite`
via:
GTK_MODULES=gtkparasite gvim
the offending widget is the topmost GtkForm. To make the problem more
apparent, you can add the following to your ~/.gtkrc-2.0 file:
style "my-background" { bg[NORMAL] = "#f00" }
widget "vim-main-window.*.GtkForm" style "my-background"
I could be wrong, but I seem to recall that the Windows version is also
built using Gtk. You should be able to create a
%USERPROFILE%\.gtkrc-2.0 file with that same content. (e.g., for me, it
would be at C:\Users\bhaskell\.gtkrc-2.0 -- with no file extension)
The space that shows up as white in your screenshots will never be
usable space (since the usable portion of the GVim window will always be
a multiple of the monospaced font size). If it's just aesthetics you're
after, the gtkrc file is the right workaround. The "#f00" in my example
makes the background red. If you want it to match your background from
the screenshot, use "#2d2d2d" to match the first line [slightly grey],
or "#0d0e0f" to match the rest of the lines [closer to black])
--
Best,
Ben H
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Monday, July 23, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment