Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Thank you. It seems that CentOS 7 has vim 7.4 (2013) version. In this t_RB setting is not available. Additionally, as you said , settings COLORFGBG seems to work, i.e., vim then automatically sets the background property. But that does not solves the problem. I now have to set COLORFGBG environment variable instead of setting background value in vimrc. Either way, the effort seems to be the same when I intend to change the terminal colour scheme. Commented Aug 2, 2018 at 19:44
  • .vimrc example possible for new vim users? The "classic" .vimrc that I found do not contain a t_RB... Thx Commented Feb 13, 2020 at 11:41
  • @GGleGrand If your terminal is configured correctly, t_RB will be set up automatically on Vim startup: you don't need to add it to your .vimrc. Commented Feb 13, 2020 at 11:53