Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to quickly disable/enable color coding in vimdiff ? The problem is, I have colored text in vim and the text is invisible is the text-color is Red, and the vimdiff too tries to put a background color of Red, making it hard to read.

So, I would like to disable the color coding for sometime, for verifying the text and re-enable it later. Any quick, easy way to do this?

share|improve this question
Related: Load a different vimdiff color scheme – belacqua Sep 10 '13 at 17:46
up vote 11 down vote accepted

You can easily deactivate the coloring in vim


And to turn it on again

:windo diffthis
share|improve this answer

Syntax highlighting in vim can be turned off/on with :syntax off and :syntax on.

share|improve this answer

put this in your .vimrc:

if &diff
    syntax off

what it does is disable syntax highlighting if you start in diff mode.

share|improve this answer

TERM=vt100 vimdiff should invoke vimdiff with a TERM temporarily set to vt100. (until the command finishes). This makes it easy to try others : xterm or xterm-color or xterm-256color , etc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.