0

I'm using gVim 8.x 64-bit on Window 10 that I installed using chocolatey vim tux package.

Just recently I started getting these highlights when I open files.

enter image description here

I'm using solarized colorscheme. When I set the colorscheme manually, the highlights disappear.

enter image description here

h-rai
  • 3,636
  • 6
  • 52
  • 76
  • Do you have `colorscheme solarized` in your .vimrc? If that doesn't work then colorscheme may be getting overridden from another file. Also the `background` option can affect the colors. – builder-7000 Jun 25 '19 at 15:22
  • I have `colorscheme solarized` in my .vimrc. When I start gvim and check `colorscheme` I get back `solarized`. My background is set to dark. Without me changing any settings, the background is fine in 32-bit gvim but has this issue in 64-bit gvim. – h-rai Jun 26 '19 at 02:49
  • have you tried a minimalist .vimrc that does pretty much nothing except the 3 lines needed for solarized? syntax enable . set background=dark . colorscheme solarized . – Stun Brick Jun 26 '19 at 07:32
  • @StunBrick It looks like one of the plugins is the culprit. The weird thing is it only happens in 64-bit and not 32-bit. Do you know what property I should be looking at? – h-rai Jun 27 '19 at 03:53
  • try putting the lines relating to solarized and such at the bottom of the .vimrc. my reasoning being that you say that if you manually set the colorscheme then it works again, so I suspect that your plugin is setting colorschemes, background colors or syntax highlighting. Which plugin was causing the problem? – Stun Brick Jun 27 '19 at 08:53
  • That's the thing. I'm setting the colorscheme at the end of the vimrc after loading all the plugins. When I source the vimrc explicitly, the problem goes away. – h-rai Jun 27 '19 at 09:54

0 Answers0