views:

80

answers:

2

As I use vim, it tries to be helpful by highlighting groups of four spaces in yellow, as shown.

Example of the highlighting in question

My .vimrc file says, in its entirety, set tabstop=4.

How can I keep vim from highlighting the indentation in my files?

+4  A: 

Is this a case of highlighting the last search? If so, try typing ":noh".

bentsai
That could still be it. If the `h` setting isn't in the `'viminfo'` option, Vim may highlight the string stored in the `/` register when loading the viminfo file.
jamessan
As it turns out, that was it. I didn't realize that searches were persistent. Thanks!
Kiwi
+2  A: 

If bentsai's answer isn't correct, then there's probably a match pattern in effect. In that case, :call clearmatches() will remove the highlighting.

jamessan
As it turns out, it was correct, but thanks!
Kiwi