Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Okay so im my .vimrc file, I did type

hi Normal guibg=#000000

changing the background color to black, however, this only changes the background color of the lines where I have typed out text. If the lines are empty and there is no line number for it, then the background color is still grey (the default background color for the color scheme which I am using, which is called 'slate'). How do I change the entire background color to blank, including the lines which I have not typed anything on?

Also, secondary question, what's the difference between guibg and guifg?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

I came across the exact same problem with the jellybeans theme. It took me a while and I came back here to answer your question for future reference.

hi Normal will only change the colors of the text area, to change the background of the empty text area you use hi NonText guibg=#color ctermbg=#color. For instance, I wanted to get rid of the background color since I'm using a semi-transparent background terminal so I used hi NonText ctermbg=NONE and that solved it.

share|improve this answer

Your Answer

 
discard

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.