49 votes

How do I customize vimdiff colors?

One quick fix is to disable syntax highlighting. Sometimes the code syntax highlighting will cause the foreground text to be the same color as the vimdiff background color, making the text "invisible"....
wisbucky's user avatar
  • 950
45 votes
Accepted

How do I customize vimdiff colors?

The colors are controlled by these four highlight groups (:help hl-DiffAdd): DiffAdd diff mode: Added line DiffChange diff mode: Changed line DiffDelete diff mode: Deleted line DiffText diff ...
Ingo Karkat's user avatar
  • 17.8k
25 votes

How do I customize vimdiff colors?

Extending Ingo Karkat's solution to terminal, hi DiffAdd ctermfg=NONE ctermbg=Green hi DiffChange ctermfg=NONE ctermbg=NONE hi DiffDelete ctermfg=LightBlue ctermbg=Red ...
kmario23's user avatar
  • 353
13 votes

How do I customize vimdiff colors?

Another quick (perhaps even lazy) fix is to just do something like: :colo desert This will change your color scheme, and in some cases will make hidden text become visible.
Nathan Chappell's user avatar
11 votes
Accepted

What is the difference between red and cyan in spell check highlighting?

If your highlighting is like mine then that would be a SpellLocal error. SpellLocal Word that is recognized by the spellchecker as one that is used in another region. And... A word may be ...
B Layer's user avatar
  • 19.8k
10 votes
Accepted

24-bit / 256 colorscheme in Windows console

tl;dr: My path was using the an old Vim version, with v8.1.428 we have full 24-bit glorious colours in Vim in the Windows Console! See below for screenshots. Err, so there was a basic mistake on my ...
icc97's user avatar
  • 583
8 votes
Accepted

How to color VIM ":!{cmd}" output?

The video shows Vim, not Neovim. In Neovim the output of "bang" is not colorized. If you like long stories you can read this and this and so on. TL;DR they think it's not a big deal, but ...
Matt's user avatar
  • 20.7k
7 votes
Accepted

How to change the command line status message color and font?

Try combination of :h echohl and :h echon: :echohl Statement | echon "Hello " | echohl Identifier | echon "World" | echohl None | echon "!!!" echohl will apply highlight ...
Maxim Kim's user avatar
  • 13.4k
6 votes
Accepted

ctermbg and ctermfg are backwards or incorrect for certain highlighting groups

You're probably overlooking the additional attributes set in the cterm= field for those highlights. For instance, after I set ctermfg=black ctermbg=white for StatusLine, I get this when I query it: :...
filbranden's user avatar
  • 28.8k
5 votes
Accepted

why is the material theme looking all weird on my vim

Looking through the color settings in the theme, it's only defining the full color range for the GUI, and is using the default 16 terminal colors. Your screen shot appears to be using fairly standard ...
Drew's user avatar
  • 585
5 votes
Accepted

Changing the color of delimited text

This is not too complicated. Try this: syn match delimited /\\note{\_.\{-}}/ containedin=ALL hi delimited guifg=red ctermfg=red Of course, you can change red to whatever color you want. Note that ...
DJMcMayhem's user avatar
  • 17.6k
5 votes
Accepted

Change background color of git conflict marker sections

In your Vim config, you can do the following (change the colors and styling to your liking): function! ConflictsHighlight() abort syn region conflictStart start=/^<<<<<<< .*$/...
padawin's user avatar
  • 1,333
5 votes
Accepted

How do I change vim cursor color

You can only change GUI vim cursor color in vim: augroup tune_colors | au! au ColorScheme * hi Cursor guibg=red guifg=white augroup END If you use terminal vim, change cursor colors in terminal ...
Maxim Kim's user avatar
  • 13.4k
5 votes
Accepted

Colorizing old school VI

"old school VI" version 3.10 sounds like AIX (good luck on finding "vim 3.10"). For the record, I see these reported by AIX (for the ":ve" command): Version 3.10 HPUX ...
Thomas Dickey's user avatar
4 votes
Accepted

Getting an RGB color from highlight group

Consider using the synIDattr() function, which can take special attributes such as fg# and bg# to return RGB for attributes, when a GUI is running. "fg#" like "fg", but for the GUI and the GUI ...
filbranden's user avatar
  • 28.8k
4 votes
Accepted

Apply terminal colors in gui?

Those are ANSI escape sequences which are commonly used to print colored text in terminal windows. If valid sequences are being inserted into Vim buffers then you'll be happy to know that there's a ...
B Layer's user avatar
  • 19.8k
4 votes

How to change Operator highlight color in Vim?

It indeed looks like cppOperator links to Operator which links to Statement (-> :hi cppOperator), but I've never seen these operators displayed differently... It's just for the keywords. See syn list ...
Luc Hermitte's user avatar
  • 17.4k
4 votes
Accepted

How to show list characters with red color?

You need to do this in two steps. You got the first one right by setting list and listchars. The problem comes when you apply the highlight: you cannot combine the commands the way you are trying to. ...
Biggybi's user avatar
  • 2,740
4 votes
Accepted

Highlighting color strings with correspondent color

There are a number of plugins that do this for colour names, hex colours, and RGB colours: Colorizer by Christian Brabandt, (who appears to be modestly refraining from answering this question with a ...
Rich's user avatar
  • 31.9k
3 votes
Accepted

How do I manually set the colorscheme for a single editing session?

You can execute :setfiletype markdown inside vim. If you edit this file often and always want it to be recognized as markdown you can add a modeline to it. Put this like at the top or bottom of the ...
Lucas's user avatar
  • 1,629
3 votes
Accepted

How to get 50 char long warning color highlight in vim gitcommit message without fugitive

The highlight group is hi gitcommitOverflow. however it's part of vim's built-in syntax file gitcommit.vim, not in any way part of fugitive (besides having the same maintainer). Strangely, it looks ...
Mass's user avatar
  • 14.1k
3 votes
Accepted

How does g:terminal_ansi_colors affect the :terminal colors?

The help for the function term_setansicolors provides some more details. The short story is these 16 colors form a conventional palette which terminal programs use when outputting text. You can set ...
Mass's user avatar
  • 14.1k
2 votes

How do I customize vimdiff colors?

Accepted answer didn't work for me. I'm using vim 8.2. Add to .vimrc after 'colorscheme ...' colorscheme challenger_deep " Diff colors (Stand with Ukraine). hi DiffAdded ctermfg=Yellow ...
VladSavitsky's user avatar
2 votes
Accepted

Change the colors provided in gui-colors

That is not easily possible. I think those colors mentioned there are predefined in the source. Most other colors will be read from the distributed file RGB.txt in the runtime directory. This file ...
Christian Brabandt's user avatar
2 votes
Accepted

Set text color for each column

I assume by "column" you mean in a tab-delimited sense. You can get this effect with the following code. Turn on and off with :DoColorColumns/:NoColorColumns. You can easily make a mapping if ...
Mass's user avatar
  • 14.1k
2 votes
Accepted

Plugin vim-signature: How to change mark column character color?

By default, the vim-signature plugin uses the SignatureMarkText highlighting group for its mark signs. It's better to set the colour of this in your vimrc rather than editing the plugin's code (which ...
Rich's user avatar
  • 31.9k
2 votes

Plugin vim-signature: How to change mark column character color?

Mark column is added by plugin: vim-signature. Need to edit: $HOME/.vim/bundle/vim-signature/autoload/signature/utils.vim Change 'SignatureMarkText' color. Need to exit vim to see the change.
Fisher's user avatar
  • 1,086
2 votes

Change color of signs in SignColumn/Gutter

Note: Written before OP added the relatively important detail that the signs are generated by Syntastic. Ergo, a general tossing of things against the wall to see what sticks rather than a quick ...
B Layer's user avatar
  • 19.8k
2 votes

How to set CursorLine highlight color for the gruvbox colorscheme

What works for me, in your .vimrc first set your colorscheme, then your desired highlight: colorscheme gruvbox highlight Cursorline whatever_you_like That way your colorscheme won't clobber your ...
PeterVP's user avatar
  • 161

Only top scored, non community-wiki answers of a minimum length are eligible