vim colorschemes not changing background color

后端 未结 11 1829
北恋
北恋 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:27

    Use this rule if you use Vim through SSH:

    1. Add to your local .bashrc:

      export TERM=xterm-256color
      
    2. Remove from .bashrc any TERM definitions.

    If you use same .bashrc on both (local and remote), use temporary environment variable and never set TERM globally:

    alias color-ssh='TERM=xterm-256color ssh user@host'
    

提交回复
热议问题