2

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
3

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

-1

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 :( – Ben Sandeen Jan 15 '17 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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