如何改变vim的整个背景

我正在使用默认情况下在未占用的行上使用灰色背景的颜色方案,例如:

enter image description here enter image description here

什么是colorcheme条目来确定未使用的行中的背景,我如何将其更改为仅白色?

评论
qnobis
qnobis

Background of unused lines is controlled/set by Highlight command

:help :hi


12. Highlight command                   *:highlight* *:hi* *E28* *E411* *E415*

There are three types of highlight groups:
- The ones used for specific languages.  For these the name starts with the
  name of the language.  Many of these don't have any attributes, but are
  linked to a group of the second type.
- The ones used for all syntax languages.
- The ones used for the 'highlight' option.

您可以使用此命令查看当前处于活动状态的所有组:

:so $VIMRUNTIME/syntax/hitest.vim


Highlighting groups for various occasions
-----------------------------------------
SpecialKey      SpecialKey
NonText         NonText
Directory       Directory

~

您可以如下设置未使用的行的颜色:

:hi NonText ctermbg=BlACK

例:

Exampel:

Set to :hi NonText ctermbg=NONE for no color

点赞
评论