Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-08-2009, 04:30 PM   #1
LQ Newbie
Registered: May 2009
Location: Atlanta, GA
Posts: 2

Rep: Reputation: 0
everything highlighted in vim

hey guys. for some reason now when i'm using vim, everything is highlighted--not like color coded, but just highlighted in this ugly green color so that I can't see syntax color coding anymore. I don't remember typing in any commands that would cause this to happen. any ideas on how to fix it?
Old 05-08-2009, 04:40 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,197
Blog Entries: 15

Rep: Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310Reputation: 1310
Highlighting usually occurs when you try a locate (/ or ?). Maybe you did a locate for some global pattern accidentially? Try doing /qwerty to locate qwerty. So long as it isn't in the file that should remove the highlighting if that is why it is on. Vim seems to remember the last locate in the file the next time you pull it up.
Old 05-08-2009, 10:20 PM   #3
LQ Newbie
Registered: May 2009
Location: Atlanta, GA
Posts: 2

Original Poster
Rep: Reputation: 0
Great! Thanks that fixed everything.
Old 05-09-2009, 03:32 AM   #4
Registered: Jan 2006
Distribution: ArchLinux
Posts: 175

Rep: Reputation: 34
To remove highlight type :noh


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
'l' letters are constantly highlighted in VIM?! MheAd Linux - Newbie 11 04-04-2012 12:41 PM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 05:26 PM
the character 'i' gets highlighted each time... author_unknown Linux - Software 1 01-17-2009 12:23 AM
Why are these highlighted? mjchin Linux - Newbie 4 01-18-2008 01:56 AM
Highlighted text in Vi doncrawley Linux - Newbie 3 10-18-2003 09:37 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration