I switched from macos to linux and have spontaneous highlighting in my document. I tried to get rid of it by doing the following command without success:
hi clear
no syntax
nohlsearch
noh
The randomly highlighted pattern is for example in the following line written in python, the strings numpy
and savetxt
are highlighted:
#from numpy import savetxt
when I uncomment the the line, the highlighting disapears
from numpy import savetxt
Here is a screenshot of the highlighting:
The highlighting disappeared after inserting in the .vimrc
:
set nospell
But but I thin it then anihi
late the command:
set spellang=en
set spell
int the .vimrc
What should I do?
:syntax off
. Note that highlighting of search terms is a different animal.:syntax off
: this removed the (helpful) syntax highlighting but didn't remove the "random" other bothersome highlighting:h 'nohls'
, though.:set nospell
.