Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get rid of vim's search hilighting thing?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Nicolinux
Apprentice
Apprentice


Joined: 22 Dec 2002
Posts: 204

PostPosted: Thu Apr 22, 2004 2:53 pm    Post subject: How to get rid of vim's search hilighting thing? Reply with quote

Hi,

I'am using vim 6.x and noticed that every time when I search something in a file it hilights the result with a bright yellow color that is very unreadable and annoying. Tried ":syntax off" but this turns off only the colors not the ugly search hilight.
Anyone knows how to get rid of this?


Thanks much

Stefan
Back to top
View user's profile Send private message
rex123
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 272

PostPosted: Thu Apr 22, 2004 3:05 pm    Post subject: How to get rid of vim's search hilighting thing? Reply with quote

Code:
:set nohlsearch

or, to remove it just until the next search,
Code:
:nohlsearch

Or - if you like it really, but want to change the colour, have a look at
Code:
:colorscheme

Or
Code:
:help 'highlight'
or change the colour of the search highlight group (for the more adventurous)
Back to top
View user's profile Send private message
Nicolinux
Apprentice
Apprentice


Joined: 22 Dec 2002
Posts: 204

PostPosted: Thu Apr 22, 2004 5:04 pm    Post subject: Reply with quote

So many options :)
Thanks.
What should I do to remove it forever? Put "nohlsearch" in ~/.vimrc ?

Stefan
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Thu Apr 22, 2004 6:40 pm    Post subject: Reply with quote

No, put :set nohlsearch in it.
I just got used to doing :noh when I see the highlights and don't want them - the highlighting can be useful.
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Thu Apr 22, 2004 7:43 pm    Post subject: Reply with quote

Oh man, I'd been wondering how to turn that off. Thanks a bunch :D
Back to top
View user's profile Send private message
myuser
Apprentice
Apprentice


Joined: 31 Jan 2004
Posts: 218

PostPosted: Sat May 01, 2004 9:19 pm    Post subject: Reply with quote

well you can use my approach which is something like:

/dfhkudfshgkghkdf

that tends to get rid of the highlighting, substitute with your own random key clicks :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum