You are not logged in.
Hi all,
I use xmonad, GTK theme with gvim and have always a kind of borders.
It's on the bottom and right (seem like the scrollbars places) and appear in all modes (tabs, full ...).
Set my guiopt :
set guioptions=aiAc
Sometimes the bottom border's size is more great.
does anybody know how to fix this ?
Can we start gvim without GTK support (X11 only) ?
Many Thx.
Last edited by mentat (2009-02-18 14:41:44)
Offline
Can we start gvim without GTK support (X11 only) ?
The whole point of GVIM is to add GTK support. It sounds like your after the standard VIM.
Offline
Can we start gvim without GTK support (X11 only) ?
Many Thx.
vim
Offline
Ouch !
Thanks to remember me ...
I don't know why think of G(raphical)vim instead GTK
I always use vim but for some colorschemes and a more good window refresh
management I would like to use gvim.
Of course without this damn borders.
Offline
gvim appears to give size hints, so by respecting those hints with this extension, you will see your background instead of the gtk padding, which might be more pleasant.
Offline
I always use vim but for some colorschemes and a more good window refresh management I would like to use gvim.
urxvt has excellent refresh capabilities that works perfectly with Vim. Although, some keyboard commands don't work by default. Ctrl+{Home, End, Left, Right} come to mind.
Offline
@vogt
Thanks to point me this extension, I just make the modification and the visual is much much better.
Not on the top because a gap appear and replace the solid border and a fine one is always on the bottom. Do you have this bottom border too ?
Now it's more please to use thanks again.
Hope xmonad contrib gurus or Bram Moolenaar (did he know it ?) can fix this one day .
@skottish thank for the tip, sure I'll test soon urxvt to replace my xterm ...
Offline
Hope xmonad contrib gurus or Bram Moolenaar (did he know it ?) can fix this one day .
I think that the current behavior is reasonable: what else could be done to fill that tiny bit of space that is too small to fit another row of text? (Other than the current gtk padding that is shown)
If you set the gtk theme color to the same one as the text background (or the other way around) it might not look as bad. However, that might look a bit weird elsewhere.
Other applications (even rxvt-unicode) all do the same thing: set size hints, and have a small border padding when they aren't given exactly the size they want. Gvim does this well, but urxvt occasionally leaves some text in that border area after a resize. But overall, these applications behave well when tiled without respecting size hints, unlike say xmms.
EDIT: In that worst case, it does look like gvim could add another couple rows of text. Perhaps it could be fixed by the rarely-used keybinding:
> mod-n Resize viewed windows to the correct size
Last edited by vogt (2009-02-18 18:42:32)
Offline
After suffering with this problem for some time, I found the following solution, which I've described in the [wiki]Xmonad[/wiki] Wiki entry.
1. Set up Xmonad.Layout.LayoutHints
2. Install xdotool from community.
3. Start gvim this way:
, ((modm, xK_v ), spawn "gvim; xdotool key Super+n")
xdotool simulates keypress events. There are several programs which do this.
Last edited by cmlr (2010-07-04 02:23:04)
Offline
I'm not a fan of the hinted layout, so I use this little hack to change the bg color of the offending widget so it's just not as noticeable.
In my ~/.gtkrc-2.0 file:
style "vimfix" {
bg[NORMAL] = "#242424" # this matches my gvim theme 'Normal' bg color.
}
widget "vim-main-window.*GtkForm" style "vimfix"
Edit: Oh I just noticed this was a necro'd post. Oh well.
Last edited by pseup (2010-07-04 06:38:28)
Offline