Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VIM - all semi-colons highlighted

Status
Not open for further replies.

Devlis

Programmer
Jan 21, 2005
3
CA
Heya... this is probably the most annoying thing that's ever happened to me:

Something I did while editing in VIM caused VIM to highlight every semi-colon. I typed something into the command line (thought I was in Insert mode) that caused this. No idea what to do to undo this.

Any help would be greatly appreciated. Greatly.

Here's what it looks like:

 
not sure, but you try - in command mode:
:se nolist

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Thanks for your quick response... didn't work though. :|

Also tried the :hi clear, no luck. Bugger.
 
You may have accidentally searched for a semicolon and Vim is highlighting them so you can see where they all are. Helpful when you need it, extremely annoying when you don't.

If that's your deal, to tell it to quit, enter command mode and type:
Code:
:nohlsearch

That will make it stop highlighting this search (the one for a semicolon), but the next time you search for something (or make another typo), the highlighting will be back.

To make it stop highlighting your searches forever, put the line:
Code:
set hlsearch off
in your [tt]~/.vimrc[/tt] file.
 
Chipper -

Yup, that did it. Brought a tear to my eye when those highlights just went away.

Thanks a bunch.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top