1

I got a weird vim interface, please take a look at the following image:

enter image description here

How can I remove those red blocks? It's not highlighted search.

What I did is switch from Gentoo to Arch, my ~/.vimrc remain unchanged.

Many thanks!

dash-tom-bang
  • 17,383
  • 5
  • 46
  • 62
daisy
  • 22,498
  • 29
  • 129
  • 265

2 Answers2

2

Looks like you've got spell-checking enabled.

:set nospell

If you want to find who set 'spell' (it's off by default), use:

:verbose set spell?
johnsyweb
  • 136,902
  • 23
  • 188
  • 247
  • `bashrc` would likely be highlighted if this were spellchecking. – dash-tom-bang Aug 19 '11 at 02:17
  • @dash-tom-bang: Likely, yes. `:verbose set spell?` will tell for definite! – johnsyweb Aug 19 '11 at 02:38
  • 1
    I have `nnoremap :set spell! spell?` in my `.vimrc`, sometimes it's really handy to be able to toggle this feature. – johnsyweb Aug 19 '11 at 10:20
  • @Johnsyweb: i use: if has('gui_running') , which only enables spell check in gVIM , normally i don't use a graphical vim interface , but i'll setup a shortcut for it , thanks ! – daisy Aug 19 '11 at 14:48
0

There's a syntax file that has those strings in it, telling the colorscheme to color them in some special way. The colorscheme defines that special way to be utterly hideous. :)

If you want that text highlighted, just differently, you'll need to edit your colorscheme. If you don't want that text highlighted, you need to remove them from the syntax definition.

Unfortunately I don't know much about that stuff as I'm mostly happy with the defaults on Windows...

dash-tom-bang
  • 17,383
  • 5
  • 46
  • 62