How can I remove the selected background of text in vim?

I mean gray background highlighting which makes vim unreadable. Note. I am running vim on Windows Subsystem for Linux. Moreover, it is not a search. This is the default view every time you open Vim.

screenshot

It seems to have nothing to do with syntax highlighting. I created a new file named a.txt. When using: syn list, it didn't say any syntax elements defined for that buffer, but I still had a gray background on every line. screenshot of a.txt

+3


source to share


2 answers


It seems that my default price of "evening" was changed by the last windows update. The workaround is to change the color scheme to a different value - desert / elflord, etc. seems to work fine. Note. This is not a workaround solution, as you can see there is still a gray background in the top lines.



+1


source


You need to figure out which syntax group is causing the highlight. :syn list

shows all active groups, but this is easier when setting SyntaxAttr.vim - to show syntax highlighting the attributes of the character under the cursor . Once you have the name of the offending syntax group, you can figure out where it came from; (last lines) :scriptnames

might help.



+3


source







All Articles