I'm at a loss at how to get rid of this jarring purple background surrounding any text that isn't visible when vim initially loads the file and displays the text. It appears when I scroll past the initially displayed text, but not when I jump to an entirely different area or resize the window. This happens for all file types I've tried so far.enter image description here

I've even replaced my .vimrc file with this extremely minimal version, and the issue still occurs (I used this .vimrc file for the above screenshot)

set nocompatible              " be iMproved, required
filetype off                  " required
highlight Normal ctermfg=grey ctermbg=darkblue

2 Answers 2


The following configuration fixed OP's issue:

set t_ut=

This says to Vim to use the current background's color to clear the screen.

Related answer: https://stackoverflow.com/a/15095377/2558252


You need to add to your .vimrc file set t_Co=256 that allow the terminal to use colors solarized.

  • That didn't have any effect :( Jan 15, 2017 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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