xfce-4 终端中 Vim 编辑器的透明背景

tma*_*ric 11 vim xfce vimrc transparency

有没有办法在 xfce-4 终端中进行透明的 Vim 会话?

小智 23

我在 gnome-terminal 中使我的透明(我猜这也适用于 xfce-4)

我正在使用Molokai 主题(256 色版本)。

我只需要改变一行。

(原来的):

hi Normal          ctermfg=252 ctermbg=233
Run Code Online (Sandbox Code Playgroud)

(我的版本,透明背景):

hi Normal          ctermfg=252 ctermbg=none
Run Code Online (Sandbox Code Playgroud)

  • 请注意,您可以将这一行添加到您的 `.vimrc` 中,它将具有相同的效果:`hi Normal guibg=NONE ctermbg=NONE`。并且它也不会改变“Normal”组的前景颜色。 (6认同)