From owner-freebsd-questions@FreeBSD.ORG Fri Jan 4 07:03:45 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8E2B79FC for ; Fri, 4 Jan 2013 07:03:45 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 3AB89151 for ; Fri, 4 Jan 2013 07:03:44 +0000 (UTC) Received: from r56.edvax.de (port-92-195-31-80.dynamic.qsc.de [92.195.31.80]) by mx01.qsc.de (Postfix) with ESMTP id F2DA73CC44; Fri, 4 Jan 2013 08:03:36 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r0473dWT001979; Fri, 4 Jan 2013 08:03:39 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 4 Jan 2013 08:03:39 +0100 From: Polytropon To: Gary Kline Subject: Re: somewhat OT ... in parts Message-Id: <20130104080339.13b51546.freebsd@edvax.de> In-Reply-To: <20130104022738.GA7368@ethic.thought.org> References: <20130103025305.GA24960@ethic.thought.org> <20130103072741.c02a1150.freebsd@edvax.de> <20130104022738.GA7368@ethic.thought.org> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2013 07:03:45 -0000 On Thu, 3 Jan 2013 18:27:38 -0800, Gary Kline wrote: > one question I have may solve the problem of vim displaying > all the ^/search terms and displaying them in some color. > the default brown is awful, but dark blue isn't much bbetter. If you try :colorscheme blue you can see that the results have orange background with dark text (maybe black?), while the editor background is blue (as the name of the color scheme suggests). > So: can I add something to my ~/.vimrc that =limits= > the "search" to displaying one term? if I am searching for, > say, "the" or I guess /\, I dont want every "the" in my > file. I want only one. or one at a time, and not necessarily > in color. If you have :set hlsearch activated, all (visible) matches will be highlighted, and the cursor will be placed at the first match. I don't see an option to highlight the _next_ result only. However, if you do _not_ set hlsearch, searching and continuing searching will not highlight anything, instead let the cursor skip to the next match (tried here with "gvim /COPYRIGHT", /this, /, /, / and so on), with :set nohlsearch for testing. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...