简体   繁体   中英

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). I have no issue using xfce4-terminal which I have chosen for that reason (I used xterm before). But urxvt works faster and I do really like low-latency apps. I have found that under tmux I have no flickering but when I disable its status line everything comes back. I do not use tmux and I have just installed it cause some guy mentioned it. 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).

man urxvt says I am using 9.22 version.

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:

hi Normal ctermfg=12 ctermbg=8 cterm=NONE

Color #8 should match with your terminal background color. I use solarized theme, so I have

*background: #002b36
*color8: #002b36

in my ~/.Xresources .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM