LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-10-2004, 02:56 AM   #1
dylan912
LQ Newbie
 
Registered: Dec 2004
Distribution: Redhat
Posts: 18

Rep: Reputation: 0
remove color after word search in vi editor


Hi All,

When I search a particular world in a file using vi editor by /realm, it will highlight "realm" word which is matched. How do we remove this highlighted colors.

Thanks in advance
 
Old 12-10-2004, 04:15 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You can use :noh to disable highlight search temporarily (until your next search). To make turning off the highlights after a search a little quicker and convenient, add something like this to your ~/.vimrc:
Code:
nmap <silent> <C-N> :silent noh<CR>
This will map Ctrl+N to :noh.


Håkan
 
  


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
using sed to remove word wrap Harpune Linux - Software 2 03-02-2009 06:53 PM
ispell - remove word from dictionary? TangentSpace Linux - Software 0 10-19-2005 03:04 PM
I have a harddrive that I want to search for deleted word files, what do I do first? abefroman Linux - Security 2 07-31-2005 07:37 PM
replace a word in vim editor fssengg Linux - Newbie 3 03-10-2005 08:39 AM
search in vi editor emailssent Linux - Newbie 5 09-16-2004 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:48 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
Open Source Consulting | Domain Registration