0

I am experimenting color schemes for vim, and it isn't the first time the same scheme of colors shows differently when I set it manually by typing color [file name].vim and setting it up in my .vimrc.

For example, the colors I'm trying to set up is burnttoast256. When I select it manually inside running Vim, it shows like this:

enter image description here

But then, when exiting and entering Vim, the following:

enter image description here

If I select the colors via color or colorscheme command, it will correctly show the colors.

I already experienced some other color schemes that I needed to remove set background=256 for an accurate display, but in the case of this one, removing it doesn't solve.

Why?

  • 1
    Are you sure that your .vimrc isn't doing something else to adjust the colors and/or color scheme? – Andy Dalton Oct 9 '17 at 3:39
  • Apparently the first 3 lines after colorscheme were the cause, but I do not understand very well the reason since when I select a color manually it should be affected by the same configuration. – gamofe Oct 9 '17 at 4:13
  • 1
    Configuration is applied in order. When you select it manually, you're doing so after whatever in your vimrc that made the undesired change was applied, so the new change overrode the old. – Andy Dalton Oct 9 '17 at 4:25

Your Answer

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

Browse other questions tagged or ask your own question.