Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paddings around the actual vim window in gvim

Tags:

vim

In gvim small paddings on the right and bottom sides of a window can appear. Particularly when gvim window is maximized. For example, here is what my bottom-right corner of gvim looks like when I maximize gvim window:

http://imgur.com/0lAYU

So is there anything I can do with these paddings? For example, move the actual editing area so paddings spread evenly from all four sides of gvim window instead of being only from two sides. Does any section of the manual contains the description of them? There is no real issue here, I'm just curious.

EDIT: I'm asking about the Linux version of gvim. I don't know how gvim behaves in similar situation in Windows or on Mac.

like image 596
gvlasov Avatar asked Dec 08 '22 20:12

gvlasov


1 Answers

A common fix is to "hack" GTK so that GVim's window background is the same color as the background of your colorscheme. It's obviously less than ideal (you'd have to change it each time you try a new colorscheme) but it works reliably.

Put this code:

style "vimfix" {
  bg[NORMAL] = "#202020" # this matches my gvim theme 'Normal' bg color.
}
widget "vim-main-window.*GtkForm" style "vimfix"

in this file:

~/.gtkrc-2.0
like image 106
romainl Avatar answered Feb 12 '23 13:02

romainl