Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim remove highlight (not search highlight)

Tags:

vim

This is a screen of vim editing .bash_profile. It seem to have used some weird highlighting that I didn't explicitly turn on (e.g. around GaF)

using nohl doesn't help since I didn't initiate a search. I also tried using 'syntax off', but that just made all the font/text colours white, but the highlights were still in place.

Anyone know what this is, or how to turn it off?

Thanksenter image description here

like image 562
snowbound Avatar asked Dec 27 '22 03:12

snowbound


2 Answers

remove all highlighting.

hi clear

you can find out the group name and

hi clear group

to disable highlighting on one group

like image 163
Kent Avatar answered Dec 28 '22 17:12

Kent


You need to find out which syntax group causes the highlighting. :syn list shows all active groups, but it's easier when you install the SyntaxAttr.vim - Show syntax highlighting attributes of character under cursor plugin. When you have the name of the offending syntax group, you see to which highlight group this links to. Then check your colorscheme for its definition:

:highlight <groupname>
like image 35
Ingo Karkat Avatar answered Dec 28 '22 18:12

Ingo Karkat