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
5
  • Since this is happening with such a minimal .vimrc file, I'm guessing there might be something wrong with my vim installation, but that would be bizarre, since I just reinstalled Ubuntu about a week ago Commented Jan 15, 2017 at 22:31
  • Did you try following the instructions in the solarized colorscheme readme? (github.com/altercation/ethanschoonover.com/blob/master/projects/…) Commented Jan 15, 2017 at 23:13
  • Nope because this issue is now occurring even without using the solarized theme :/ Commented Jan 15, 2017 at 23:48
  • 1
    Does this vi.stackexchange.com/q/10742/1821 help ?
    – nobe4
    Commented Jan 16, 2017 at 7:45
  • @nobe4 See my previous comment (I'm just trying to make sure you get notified) Commented Jan 17, 2017 at 0:05

2 Answers 2

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.

1
  • That didn't have any effect :( Commented 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.