How to remove white border in gVim 8 with gtk 3

泄露秘密 提交于 2019-11-29 16:57:14

问题


I recently updated my gVim to version 8 compiled with gtk 3, and I found there are strange inner borders around the gVim window:

This picture may not very clear but if you look carefully you can see the white borders on the right side and the bottom. I have solved this issue by setting a dark color to the border on gtk 2, but on gtk3 it happends again. Any idea of removing this border completely on gtk 3?


回答1:


Gtk3 uses css to style applications. To remove the white border from the gVim window, edit the file ~/.config/gtk-3.0/gtk.css and enter the following:

@define-color YOUR_BACKGROUND_COLOR #rrggbb;

window#vim-main-window {
    background-color: @YOUR_BACKGROUND_COLOR;
}



回答2:


I created a plugin to solve this issue. But it is Windows only: github.com/gabr/FixGVimBorder



来源:https://stackoverflow.com/questions/39763539/how-to-remove-white-border-in-gvim-8-with-gtk-3

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!