Vim colorscheme does not work, only black and white

Solution Verified - Updated -

Issue

  • Setting a Vim colorscheme does not work, the terminal only displays black and white.
  • Settings in .vimrc should set a color theme with syntax highlighting, eg:
syntax on
colorscheme desert
set termguicolors

Environment

  • Red Hat Enterprise Linux 8
  • Vim text editor

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content