[英]How to get rid of vim status line flickering when switching tab?
I want to replace xfce4-terminal to urxvt but there is flickering of lines with bg
property set (tabline, statusline) when switching tabs in vim (or neovim). 我想将xfce4-terminal替换为urxvt,但是在vim(或neovim)中切换选项卡时,带有
bg
属性集(行,状态行)的行闪烁。 I have no issue using xfce4-terminal which I have chosen for that reason (I used xterm before). 我没有因为这个原因而选择使用xfce4-terminal的问题(我之前使用过xterm)。 But urxvt works faster and I do really like low-latency apps.
但是urxvt的运行速度更快,而且我确实很喜欢低延迟的应用程序。 I have found that under tmux I have no flickering but when I disable its status line everything comes back.
我发现在tmux下我没有闪烁,但是当我禁用它的状态行时,一切都会恢复。 I do not use tmux and I have just installed it cause some guy mentioned it.
我不使用tmux,而我刚刚安装了它,因为有人提到了它。 I do not mind to use tmux or gnu screen (have no effect under it) if it is invisible (not with statusline or whatever else).
我不介意使用tmux或gnu屏幕(在其下没有任何作用),如果它是不可见的(不在statusline或其他任何东西上)。
man urxvt
says I am using 9.22 version. man urxvt
说我正在使用9.22版本。
I am glad I have found this issue . 我很高兴发现了这个问题 。 In order to get rid of annoying flickering define
ctermbg
property for Normal
syntax group in your color scheme, like this: 为了摆脱烦人的闪烁,请在您的配色方案中为
Normal
语法组定义ctermbg
属性,如下所示:
hi Normal ctermfg=12 ctermbg=8 cterm=NONE
Color #8 should match with your terminal background color. 颜色#8应该与您的终端背景颜色匹配。 I use solarized theme, so I have
我使用日光化主题,所以我有
*background: #002b36
*color8: #002b36
in my ~/.Xresources
. 在我的
~/.Xresources
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.