vim colorschemes not changing background color

后端 未结 11 1826
北恋
北恋 2021-01-30 08:43

I try to apply various color schemes in vim that I have seen on the net. Whatever scheme I choose, the background remains white, even though screenshots of the applied scheme sh

11条回答
  •  执笔经年
    2021-01-30 09:24

    You need to add set termguicolors to your ~/.vimrc

    I tested t_Co=256 and other options, but none worked, only set termguicolors

    After this you can use the command set bg=light or set bg=dark to see witch one looks better (some vim color schemes accept both options).

    Here is a list of terminals that are compatible with termguicolors: https://gist.github.com/XVilka/8346728#now-supporting-true-color

提交回复
热议问题