From owner-freebsd-questions@FreeBSD.ORG Sun Jan 6 21:11:57 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 82F15DD8 for ; Sun, 6 Jan 2013 21:11:57 +0000 (UTC) (envelope-from kline@thought.org) Received: from p3plsmtpa08-01.prod.phx3.secureserver.net (p3plsmtpa08-01.prod.phx3.secureserver.net [173.201.193.102]) by mx1.freebsd.org (Postfix) with ESMTP id 647591886 for ; Sun, 6 Jan 2013 21:11:57 +0000 (UTC) Received: from ethic.thought.org ([209.180.213.209]) by p3plsmtpa08-01.prod.phx3.secureserver.net with id kl9L1k0034XeM0101l9LxT; Sun, 06 Jan 2013 14:09:21 -0700 Date: Sun, 6 Jan 2013 13:09:29 -0800 From: Gary Kline To: Polytropon Subject: Re: somewhat OT ... in parts Message-ID: <20130106210928.GA4275@ethic.thought.org> References: <20130103025305.GA24960@ethic.thought.org> <20130103072741.c02a1150.freebsd@edvax.de> <20130104022738.GA7368@ethic.thought.org> <20130104080339.13b51546.freebsd@edvax.de> <20130104215945.GA23933@ethic.thought.org> <20130105084318.61354422.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130105084318.61354422.freebsd@edvax.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jan 2013 21:11:57 -0000 On Sat, Jan 05, 2013 at 08:43:18AM +0100, Polytropon wrote: > On Fri, 4 Jan 2013 13:59:45 -0800, Gary Kline wrote: > > On Fri, Jan 04, 2013 at 08:03:39AM +0100, Polytropon wrote: > > > 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. > > > > > > > Hm. there must be "something" in Muttrc. I dont see it in my > > local ~/.muttrc; this "something" is controlling every /search > > term and highlighting it. > > That should be the default of :set hls (usually in ~/.vimrc), > as I assume Mutt "inlines" vim. > > > > > the regular vim /tmp/foofile.c /tmp/footext is fine. it's only > > in mutt that highlights EVERY instance that I'm searching for. > > I'll figure it out eventually if you don't know offhand. or > > anybody else. > > Search for "flags to vim as editor", :set hlsearch or :set hls. > You can add your own :set nohlsearch or :set nohls at the end > of the file to try to deactivate the effect. This should also > work when manually entered during an editor session. > > > > > maybe I should just find keith bostic's newvi; see if they have it > > for linux; theyve got everything else... {grumble} > > I know there's nvi in ports. > > Maybe those will be helpful: > > http://garage.linux.student.kuleuven.be/~skimo//nvi/ > > > > nvi download here: > > https://sites.google.com/a/bostic.com/keithbostic/files > > > > Project page and FAQ: > > https://sites.google.com/a/bostic.com/keithbostic/vi > > thankee, polyt. the URL's were right on the money! okay, here's the update. I spent much of saturday cleaning and fixing the VBC program. I will probably split some things off into a vbc.h header file to make things a bit neater. but here is where I need at least one volunteer from the BSD world. you'll need to have espeak and vim/gvim installed. And, of course, the gtk libraries. and maybe gnome, altho I cant see why. this stuff already works on three versions of linux that run the GNOME Desktop. anybody have time to test in, say, a week or two? gary ps: if the Makefile works and it builds and execs, that will be a ++good sign :) > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Twenty-six years of service to the Unix community.