Getting rid of highlighting in a vi editor text file.
Linux - NewbieThis 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.
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.
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?
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.
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.