LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-08-2009, 03:30 PM   #1
ashmula
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, 03:40 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,834
Blog Entries: 14

Rep: Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081Reputation: 1081
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, 09:20 PM   #3
ashmula
LQ Newbie
 
Registered: May 2009
Location: Atlanta, GA
Posts: 2

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

Rep: Reputation: 34
To remove highlight type :noh
 
  


Reply


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 11:41 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM
the character 'i' gets highlighted each time... author_unknown Linux - Software 1 01-16-2009 11:23 PM
Why are these highlighted? mjchin Linux - Newbie 4 01-18-2008 12:56 AM
Highlighted text in Vi doncrawley Linux - Newbie 3 10-18-2003 08:37 AM


All times are GMT -5. The time now is 03:23 AM.

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