Using Solarized 'high' diffmode with vim-fugitive 'Gdiff'

1

I'm using the main Solarized colour scheme without any problems but when using Gdiff from vim-fugitive the high contrast diff mode is not selected. I've placed the following in my ~/.vimrc:

set background=dark
colorscheme solarized
let g:solarized_diffmode="high"

however the standard colour scheme is still used even when in the diff mode triggered by :Gdiff on a file with changes.

Any ideas?

Fred Clausen

Posted 2018-08-20T01:25:04.137

Reputation: 183

Answers

1

It turns out I need to set the diffmode option before calling the colour scheme. As described in the vim-colors-solarized README under "Advanced Configuration":

Set these in your vimrc file prior to calling the colorscheme.

Which also includes the diffmode. So the snippet above needs to be

set background=dark
let g:solarized_diffmode="high"
colorscheme solarized

With colorscheme called after setting the diffmode.

Fred Clausen

Posted 2018-08-20T01:25:04.137

Reputation: 183