vi editor in vim highlight mode?

Hey guys, I am new here and new to using the vi editor. While doing some c programming I did a fat finger while I was typing include, and now every word "include" is high lighted in blue. I think I got myself into a vim command, but I cannot find a way to undo it.

Anyone know what I did and how I can fix?

It sounds as if you may have done a search for "include" and you also have a configuration that highlights all matches. When I do something similar, I usually just search for something that is not there and the highlights will go away. Try hitting escape a few times to be sure you are in command mode and then type /asdfasdf and then press [enter]. You should then see a message about it not being found and the highlights should go away.

Here is a link that explains a little more about search result highlighting, which also mentions how to temporarily turn it off:
http://vim.wikia.com/wiki/Highlight_all_search_pattern_matches

Hope this helps.
Last edited on
That did the trick; now I can focus better on my code instead of wondering why all my includes were highlighted.


Thanks for the Help!!
Topic archived. No new replies allowed.