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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-10-2004, 04:57 PM
|
#1
|
LQ Newbie
Registered: Mar 2004
Location: London ON Canada
Posts: 4
Rep:
|
Getting rid of highlighting in a vi editor text file.
I am just learning Red Hat 9 Linux. Today in class we learned how to highlight text by using the command /Mother. When the lesson was over no one really knew how to get rid of the highlighting of Mother so that the text was all normal again. Any hints or knowledge of how to get rid of it?
|
|
|
03-10-2004, 05:02 PM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
Hi Dee62!
Welcome to LinuxQuestions.org. To enable vim syntax highlighting do, while editing a file:
ESC: syntax on
To disable it:
ESC: syntax off
I don't know if that would work with Mother (nor have I heard of that command). But try it out.
Cheers!
|
|
|
03-10-2004, 05:10 PM
|
#3
|
Member
Registered: Dec 2002
Distribution: Slackware
Posts: 927
Rep:
|
|
|
|
03-10-2004, 05:11 PM
|
#4
|
LQ Newbie
Registered: Mar 2004
Location: London ON Canada
Posts: 4
Original Poster
Rep:
|
Thank you megaman X. I will try that and let you know. it is the command that finds the next occurence of the word Mother in the file and highlights it but don't know how to turn it off.
|
|
|
03-10-2004, 05:20 PM
|
#5
|
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,337
Rep:
|
Quote:
Originally posted by Dee62
Thank you megaman X. I will try that and let you know. it is the command that finds the next occurence of the word Mother in the file and highlights it but don't know how to turn it off.
|
Thanks mate!. Cool, I will check it out. We learn something new everyday here
|
|
|
03-11-2004, 12:54 AM
|
#6
|
Member
Registered: Jun 2003
Posts: 132
Rep:
|
The highlighting is enabled throgh ":set hlsearch" and disabled through ":set nohlsearch". Personally when I'm too busy to type that, I just type /asfijaelkfe so it goes away
|
|
|
03-11-2004, 03:55 PM
|
#7
|
LQ Newbie
Registered: Mar 2004
Location: London ON Canada
Posts: 4
Original Poster
Rep:
|
Sorry Megaman X...it didn't work. Nothing happened when I tried your idea.
Thanks Qzukk. I found out that :noh works faster than typing all that and the :set nohlsearch can be set in the .erxc file(ex runtime configuration) in the home directory. Thank you for your help.
|
|
|
All times are GMT -5. The time now is 06:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|