vimcolorscolor-scheme

Override colorscheme


I often find myself wanting to change just something little in a colorscheme, but I don't want to edit the original file. I tried putting my change in ~/.vim/after/colors/blah.vim, but that doesn't work for me.

Example, I want to change the CursorLine highlight in BusyBee.vim..

~/.vim/colors/BusyBee.vim

I create the file ~/.vim/after/colors/BusyBee.vim and add this:

hi CursorLine    guibg=#000000 ctermbg=Black cterm=none

However, I don't see the change. Of course it works if I change the line in the original BusyBee.vim, but like I said I'd prefer not to do that.

Doing...

:colo Busy<TAB>

Shows me...

BusyBee  BusyBee

Solution

  • Have a look at AfterColors.vim, it will enable you to to use the ~/.vim/after/colors/BusyBee.vim method.