Review your favorite Linux distribution.
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 12-10-2004, 03:56 AM   #1
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, 05:15 AM   #2
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:
nmap <silent> <C-N> :silent noh<CR>
This will map Ctrl+N to :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
using sed to remove word wrap Harpune Linux - Software 2 03-02-2009 07:53 PM
ispell - remove word from dictionary? TangentSpace Linux - Software 0 10-19-2005 04: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 08:37 PM
replace a word in vim editor fssengg Linux - Newbie 3 03-10-2005 09:39 AM
search in vi editor emailssent Linux - Newbie 5 09-16-2004 08:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:48 AM.

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
Open Source Consulting | Domain Registration